From d8f757eb4ef07594c1215dd8ff6026fa873999a8 Mon Sep 17 00:00:00 2001 From: joowojr Date: Tue, 4 Feb 2025 09:13:23 +0900 Subject: [PATCH] =?UTF-8?q?CLAP-251=20Fix:=20swagger=20401=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 관련: #274 --- .../inbound/security/filter/JwtAuthenticationFilter.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/clap/server/adapter/inbound/security/filter/JwtAuthenticationFilter.java b/src/main/java/clap/server/adapter/inbound/security/filter/JwtAuthenticationFilter.java index bb8a27c0..22dbf28d 100644 --- a/src/main/java/clap/server/adapter/inbound/security/filter/JwtAuthenticationFilter.java +++ b/src/main/java/clap/server/adapter/inbound/security/filter/JwtAuthenticationFilter.java @@ -49,13 +49,10 @@ protected void doFilterInternal( @NotNull FilterChain filterChain ) throws ServletException, IOException { try { - if (Arrays.asList(PUBLIC_ENDPOINTS).contains(request.getRequestURI())) { + if (isAnonymousRequest(request)) { filterChain.doFilter(request, response); return; } - if (isAnonymousRequest(request)) { - throw new AuthException(AuthErrorCode.UNAUTHORIZED); - } String accessToken = resolveAccessToken(request);