Skip to content

Commit

Permalink
Merge pull request #4 from IT-Cotato/feature/swagger-docs-0525
Browse files Browse the repository at this point in the history
Chore: API 문서화를 위한 swagger 설정
  • Loading branch information
gikhoon authored May 28, 2024
2 parents b32a00a + 3e5fabb commit f3541dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public class SecurityConfig {
private static final String[] WHITE_LIST = {
"/v1/api/auth/**",
"/swagger-ui/**",
"/v3/api-docs/**",
"/swagger-ui.html",
"/websocket/csquiz"
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ public OpenAPI customOpenAPI() {
new SecurityScheme()
.type(SecurityScheme.Type.HTTP)
.scheme("bearer")
.bearerFormat("JWT"))
.bearerFormat("JWT")
.in(SecurityScheme.In.HEADER)
.name("Authorization"))

);
}
}

0 comments on commit f3541dc

Please sign in to comment.