From a33a01a15ffb55322debfe4560bab1be259ea902 Mon Sep 17 00:00:00 2001 From: Kwon Min A Date: Fri, 24 Nov 2023 00:35:08 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=8A=A4=EC=9B=A8=EA=B1=B0=20=EB=AC=B8?= =?UTF-8?q?=EC=84=9C=20=EA=B2=BD=EB=A1=9C=20=EC=9D=B8=EC=A6=9D=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/efub/dhs/global/config/SecurityConfig.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/efub/dhs/global/config/SecurityConfig.java b/src/main/java/com/efub/dhs/global/config/SecurityConfig.java index 33469d8..f8848e3 100644 --- a/src/main/java/com/efub/dhs/global/config/SecurityConfig.java +++ b/src/main/java/com/efub/dhs/global/config/SecurityConfig.java @@ -33,12 +33,9 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws .and() .authorizeRequests() .antMatchers(HttpMethod.OPTIONS).permitAll() - .antMatchers("/programs/created", - "/programs/liked", - "/programs/registered", - "/auth/logout").authenticated() + .antMatchers("/programs/created", "/programs/liked", "/programs/registered", "/auth/logout").authenticated() .antMatchers("/auth/**", "/oauth/**").permitAll() - .antMatchers(HttpMethod.GET, "/programs", "/programs/*").permitAll() + .antMatchers(HttpMethod.GET, "/docs", "/swagger-ui/**", "/programs", "/programs/*").permitAll() .anyRequest().authenticated() .and() .addFilterBefore(new JwtFilter(jwtAuthProvider), UsernamePasswordAuthenticationFilter.class)