Skip to content

Commit c13815d

Browse files
authored
Merge pull request #275 from TaskFlow-CLAP/CLAP-254
CLAP-251 긴급 swagger 401 오류 수정
2 parents 3c90b31 + d8f757e commit c13815d

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)