From 31a74d6f1621b3b41b15bd893c13f461a9b41013 Mon Sep 17 00:00:00 2001 From: CYY1007 Date: Fri, 16 Feb 2024 20:08:54 +0900 Subject: [PATCH] =?UTF-8?q?:bug:=20Fix=20:=20=ED=86=A0=ED=81=B0=20?= =?UTF-8?q?=EA=B4=80=EB=A0=A8=20spring=20security=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/briefingapi/security/config/SecurityConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Briefing-Api/src/main/java/com/example/briefingapi/security/config/SecurityConfig.java b/Briefing-Api/src/main/java/com/example/briefingapi/security/config/SecurityConfig.java index a474b9d..ad1f4d3 100644 --- a/Briefing-Api/src/main/java/com/example/briefingapi/security/config/SecurityConfig.java +++ b/Briefing-Api/src/main/java/com/example/briefingapi/security/config/SecurityConfig.java @@ -82,7 +82,7 @@ public WebSecurityCustomizer webSecurityCustomizer() { "/schedule", "/v3/api-docs", "/v3/api-docs/**", - "/docs/**","/fcms/**", + "/docs/**","/fcms/**","/members/auth/**", "/briefings/temp"); } @@ -138,6 +138,7 @@ public SecurityFilterChain JwtFilterChain(HttpSecurity http) throws Exception { .authenticated(); authorize.requestMatchers("/v2/scraps/**").authenticated(); authorize.requestMatchers("/scraps/**").authenticated(); + authorize.requestMatchers("/members/auth/token").permitAll(); authorize.anyRequest().authenticated(); }) .exceptionHandling(