Skip to content

Commit

Permalink
Merge pull request #245 from ShallWeProject/infra/239-monitoring
Browse files Browse the repository at this point in the history
모니터링 관련 시큐리티 설정을 변경한다.
  • Loading branch information
hyunw9 authored Feb 4, 2024
2 parents 6a216aa + 37aa10a commit ca859a9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
@Configuration
@EnableWebSecurity
public class SecurityConfig {

private final CustomUserDetailsService customUserDetailsService;
private final CustomDefaultOAuth2UserService customOAuth2UserService;
private final CustomSimpleUrlAuthenticationSuccessHandler oAuth2AuthenticationSuccessHandler;
Expand Down Expand Up @@ -83,6 +83,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.authorizeHttpRequests(authorize -> authorize
.requestMatchers("/", "/error", "/favicon.ico", "/**/*.png", "/**/*.gif", "/**/*.svg", "/**/*.jpg", "/**/*.html", "/**/*.css", "/**/*.js")
.permitAll()
.requestMatchers("/management/**")
.permitAll()
.requestMatchers("/swagger", "/swagger-ui.html", "/swagger-ui/**", "/api-docs", "/api-docs/**", "/v3/api-docs/**")
.permitAll()
.requestMatchers("/login/**","/auth/**", "/oauth2/**")
Expand Down

0 comments on commit ca859a9

Please sign in to comment.