From eb7f1973b421e634218324540cf5742dfc0f7ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=84=B1=EC=9A=B0?= Date: Sun, 10 Sep 2023 13:52:54 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20Jwt-Manager=20=EB=9D=BC=EC=9D=B4?= =?UTF-8?q?=EB=B8=8C=EB=9F=AC=EB=A6=AC=20=EB=B2=84=EC=A0=84=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20(#9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 2 +- .../JwtAuthenticationFilter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 8940bea..7e0e1a2 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ repositories { dependencies { implementation 'org.springframework.boot:spring-boot-starter-security:3.1.0' implementation 'org.springframework.boot:spring-boot-starter-web:3.1.0' - implementation 'com.github.SWM-KAWAI-MANS:jwt-manager:1.3.0' + implementation 'com.github.SWM-KAWAI-MANS:jwt-manager:1.4.0' compileOnly 'org.projectlombok:lombok:1.18.26' annotationProcessor 'org.projectlombok:lombok:1.18.26' testCompileOnly 'org.projectlombok:lombok:1.18.26' diff --git a/src/main/java/online/partyrun/springsecurityauthorizationmanager/JwtAuthenticationFilter.java b/src/main/java/online/partyrun/springsecurityauthorizationmanager/JwtAuthenticationFilter.java index 1547596..e5381f8 100644 --- a/src/main/java/online/partyrun/springsecurityauthorizationmanager/JwtAuthenticationFilter.java +++ b/src/main/java/online/partyrun/springsecurityauthorizationmanager/JwtAuthenticationFilter.java @@ -28,7 +28,7 @@ protected void doFilterInternal( HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { final String token = request.getHeader("Authorization"); - final AuthUser auth = new AuthUser(extractor.extract(token)); + final AuthUser auth = new AuthUser(extractor.extractAccessToken(token)); SecurityContextHolder.getContext().setAuthentication(auth); filterChain.doFilter(request, response); }