From a08368316e562640fe7e23b5717efd7af4ea7550 Mon Sep 17 00:00:00 2001 From: 1223v <1223v@naver.com> Date: Mon, 4 Dec 2023 01:06:56 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20auth=20log=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../security/jwt/filter/JwtAuthenticationProcessingFilter.java | 2 +- .../com/readyvery/readyverydemo/src/user/UserServiceImpl.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/readyvery/readyverydemo/security/jwt/filter/JwtAuthenticationProcessingFilter.java b/src/main/java/com/readyvery/readyverydemo/security/jwt/filter/JwtAuthenticationProcessingFilter.java index 91fb32d..d89ee72 100644 --- a/src/main/java/com/readyvery/readyverydemo/security/jwt/filter/JwtAuthenticationProcessingFilter.java +++ b/src/main/java/com/readyvery/readyverydemo/security/jwt/filter/JwtAuthenticationProcessingFilter.java @@ -105,7 +105,7 @@ private String reIssueRefreshToken(UserInfo userInfo) { */ public void checkAccessTokenAndAuthentication(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { - log.info("checkAccessTokenAndAuthentication() 호출"); + jwtService.extractAccessTokenFromCookies(request) .filter(jwtService::isTokenValid) .ifPresent(accessToken -> jwtService.extractEmail(accessToken) diff --git a/src/main/java/com/readyvery/readyverydemo/src/user/UserServiceImpl.java b/src/main/java/com/readyvery/readyverydemo/src/user/UserServiceImpl.java index 549e3a5..b81ca4c 100644 --- a/src/main/java/com/readyvery/readyverydemo/src/user/UserServiceImpl.java +++ b/src/main/java/com/readyvery/readyverydemo/src/user/UserServiceImpl.java @@ -104,6 +104,7 @@ private void invalidateRefreshTokenCookie(HttpServletResponse response) { accessTokenCookie.setDomain(accessCookieDomain); accessTokenCookie.setMaxAge(0); // 만료 시간을 0으로 설정하여 즉시 만료 response.addCookie(accessTokenCookie); + } private UserInfo getUserInfo(Long id) {