Skip to content

Commit d8f757e

Browse files
committed
CLAP-251 Fix: swagger 401 오류 수정
- 관련: #274
1 parent c08b5b7 commit d8f757e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/clap/server/adapter/inbound/security/filter/JwtAuthenticationFilter.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,10 @@ protected void doFilterInternal(
4949
@NotNull FilterChain filterChain
5050
) throws ServletException, IOException {
5151
try {
52-
if (Arrays.asList(PUBLIC_ENDPOINTS).contains(request.getRequestURI())) {
52+
if (isAnonymousRequest(request)) {
5353
filterChain.doFilter(request, response);
5454
return;
5555
}
56-
if (isAnonymousRequest(request)) {
57-
throw new AuthException(AuthErrorCode.UNAUTHORIZED);
58-
}
5956

6057
String accessToken = resolveAccessToken(request);
6158

0 commit comments

Comments
 (0)