Skip to content

Commit 0ea6741

Browse files
committed
refactor: 로그아웃 경로 수정
1 parent b0f7469 commit 0ea6741

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main/java/com/example/log4u/common/oauth2/jwt/JwtLogoutFilter.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,11 @@ private void doFilter(
6666

6767
private boolean shouldSkipFilter(String requestUri) {
6868
// logout 검사
69-
return !requestUri.matches("^\\/logout$")
70-
|| requestUri.matches("^/oauth2(/.*)?$")
71-
|| requestUri.matches("^/swagger-ui(/.*)?$")// Swagger UI 예외 처리
72-
|| requestUri.matches("^/v3/api-docs(/.*)?$"); // OpenAPI 문서 예외 처리
69+
return // /oauth2/logout 만 필터 통과 대상으로 허용
70+
!requestUri.equals("/oauth2/logout")
71+
|| requestUri.matches("^/oauth2(/.*)?$")
72+
|| requestUri.matches("^/swagger-ui(/.*)?$")// Swagger UI 예외 처리
73+
|| requestUri.matches("^/v3/api-docs(/.*)?$"); // OpenAPI 문서 예외 처리
7374
}
7475

7576
private boolean validateTokenExpiration(

0 commit comments

Comments
 (0)