Skip to content

Commit

Permalink
Merge pull request #105 from Codiary-UMC-6th/feature/#79-myPage
Browse files Browse the repository at this point in the history
Chore: swagger token 설정
  • Loading branch information
yumzen authored Aug 8, 2024
2 parents 76cbebb + 083f6e3 commit e186869
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ public OpenAPI CodiaryAPI() {
String jwtSchemeName = "JWT TOKEN";
SecurityRequirement securityRequirement = new SecurityRequirement().addList(jwtSchemeName);
Components components = new Components()
.addSecuritySchemes("accessToken", new SecurityScheme()
.addSecuritySchemes("JWT TOKEN", new SecurityScheme()
.name("Authorization")
.type(SecurityScheme.Type.APIKEY) // HTTP 방식
.type(SecurityScheme.Type.HTTP) // HTTP 방식
.in(SecurityScheme.In.HEADER)
.scheme("bearer")
.bearerFormat("JWT")
);

Expand All @@ -33,7 +34,7 @@ public OpenAPI CodiaryAPI() {
.info(info)
.addSecurityItem(securityRequirement)
.components(components);
//.components(new Components())
//.addSecurityItem(securityRequirement)
//.components(new Components())
//.addSecurityItem(securityRequirement)
}
}

0 comments on commit e186869

Please sign in to comment.