From 1b32d7ff42f1bcbee9bbe054c7d9af6237ac2f93 Mon Sep 17 00:00:00 2001 From: miiiinju1 Date: Fri, 20 Oct 2023 14:16:45 +0900 Subject: [PATCH] =?UTF-8?q?:bug:=20[FIX]=20swagger=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0=20#489?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #489 --- .../swm_nm/morandi/config/security/SecurityConfig.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/swm_nm/morandi/config/security/SecurityConfig.java b/src/main/java/swm_nm/morandi/config/security/SecurityConfig.java index cc688178..93f7c250 100644 --- a/src/main/java/swm_nm/morandi/config/security/SecurityConfig.java +++ b/src/main/java/swm_nm/morandi/config/security/SecurityConfig.java @@ -17,16 +17,23 @@ public class SecurityConfig { private final FilterConfig filterConfig; + //private final JwtAuthException jwtAuthException; @Bean public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception{ - http + http .httpBasic().disable() .csrf().disable() .cors() .and() + .authorizeRequests() + .antMatchers("/oauths/**").permitAll() + .antMatchers("/swagger-ui/**", "/swagger-resources/**", "/v3/api-docs/**").permitAll() + .anyRequest().authenticated() + .and() + .sessionManagement() .sessionCreationPolicy(SessionCreationPolicy.STATELESS) .and()