Skip to content

Commit

Permalink
Merge pull request #16 from eunxeum/main
Browse files Browse the repository at this point in the history
โ™ป๏ธRefactor:Config ๋ถ€๋ถ„ ์ˆ˜์ •
  • Loading branch information
eunxeum authored Nov 2, 2024
2 parents 115547c + 6c223bd commit c366bff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.csrf(csrf -> csrf.disable())
.authorizeHttpRequests(authorizeRequests ->
authorizeRequests
.requestMatchers("/", "/login**", "/oauth2/**", "/login", "/loginFailure", "/error", "/user/login").permitAll() // ์ผ๋ฐ˜ ๋กœ๊ทธ์ธ ํ—ˆ์šฉ
.requestMatchers("/", "/login**", "/oauth2/**", "/login", "/loginFailure", "/error", "/user/login","/swagger-ui.html",
"/swagger-ui/**",
"/v3/api-docs/**",
"/swagger-resources/**").permitAll() // ์ผ๋ฐ˜ ๋กœ๊ทธ์ธ ํ—ˆ์šฉ
.requestMatchers("/user/kakao/**").authenticated()
.anyRequest().permitAll() // ๋ชจ๋“  ์š”์ฒญ ํ—ˆ์šฉ
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public OpenAPI openAPI() {
))
.addSecurityItem(new SecurityRequirement().addList(securitySchemeName))
.info(apiInfo())
.servers(List.of(new Server().url(serverUrl)));
.servers(List.of(new Server().url(serverUrl), new Server().url("http://localhost:8080")));

}

private Info apiInfo() {
Expand Down

0 comments on commit c366bff

Please sign in to comment.