Skip to content

Commit

Permalink
hotFix: swagger access token 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjy committed May 15, 2024
1 parent 2a339e4 commit dbdfa31
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
public class SwaggerConfig {
private final String JWT = "JWT";
private final String BEARER = "Bearer";
private final String AUTHORIZATION = "Authorization";
private final String ACCESS_TOKEN = "access_token";


@Bean
public OpenAPI openAPI() {
Expand All @@ -41,8 +44,9 @@ private Info getInfo() {
}

private Components getComponents() {
return new Components().addSecuritySchemes(JWT, new SecurityScheme()
.name(JWT)
return new Components().addSecuritySchemes(ACCESS_TOKEN, new SecurityScheme()
.name(AUTHORIZATION)
.in(SecurityScheme.In.HEADER)
.type(SecurityScheme.Type.HTTP)
.scheme(BEARER)
.bearerFormat(JWT)
Expand Down

0 comments on commit dbdfa31

Please sign in to comment.