From b9e35e2e474a06571a9ea2cfae86132a7dc3f4ac Mon Sep 17 00:00:00 2001 From: Ganghee-Lee-0522 Date: Fri, 12 Jan 2024 19:07:01 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20oauth2=20=EB=A6=AC=EB=8B=A4?= =?UTF-8?q?=EC=9D=B4=EB=A0=89=EC=85=98=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 401 에러를 수정하고 있습니다. --- .../committersserver/auth/config/SecurityConfig.java | 1 + .../snowflowerthon/committersserver/auth/jwt/JwtFilter.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/com/committers/snowflowerthon/committersserver/auth/config/SecurityConfig.java b/src/main/java/com/committers/snowflowerthon/committersserver/auth/config/SecurityConfig.java index 0629527..564d39a 100644 --- a/src/main/java/com/committers/snowflowerthon/committersserver/auth/config/SecurityConfig.java +++ b/src/main/java/com/committers/snowflowerthon/committersserver/auth/config/SecurityConfig.java @@ -23,6 +23,7 @@ public class SecurityConfig { private final CustomOAuth2UserService customOAuth2UserService; private String[] permitList={ + "/login", // 로그인 페이지 "/login/oauth2/code/github", "/api/auth/**", "/api/auth/login", // 로그인 시 Jwt Filter를 거쳐버림 안 거치게 수정 diff --git a/src/main/java/com/committers/snowflowerthon/committersserver/auth/jwt/JwtFilter.java b/src/main/java/com/committers/snowflowerthon/committersserver/auth/jwt/JwtFilter.java index b8633aa..9237b62 100644 --- a/src/main/java/com/committers/snowflowerthon/committersserver/auth/jwt/JwtFilter.java +++ b/src/main/java/com/committers/snowflowerthon/committersserver/auth/jwt/JwtFilter.java @@ -56,6 +56,7 @@ protected boolean shouldNotFilter(HttpServletRequest request) throws ServletExce || path.equals("/api/auth/redirect") || path.equals("/login/oauth2/code/github") || path.equals("/health") + || path.equals("/login") ; } }