Skip to content

Commit 9dfca47

Browse files
committed
fix: filter 조건 수정
1 parent 689514f commit 9dfca47

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,8 @@ private void doFilter(
7272
}
7373

7474
private boolean shouldSkipFilter(String requestUri) {
75-
// /oauth2/logout 만 필터실행
76-
if ("/oauth2/logout".equals(requestUri)) {
77-
return false;
78-
}
79-
80-
// 나머지는 다 통과
81-
return requestUri.startsWith("/swagger-ui")
82-
|| requestUri.startsWith("/v3/api-docs")
83-
|| requestUri.startsWith("/oauth2");
75+
// /oauth2/logout 에 대해서만 실행되도록 함
76+
return !"/oauth2/logout".equals(requestUri);
8477
}
8578

8679
private boolean validateTokenExpiration(

0 commit comments

Comments
 (0)