diff --git a/src/main/java/kr/re/etri/autoflow/security/jwt/JwtUtils.java b/src/main/java/kr/re/etri/autoflow/security/jwt/JwtUtils.java index 8345821..0b86c50 100644 --- a/src/main/java/kr/re/etri/autoflow/security/jwt/JwtUtils.java +++ b/src/main/java/kr/re/etri/autoflow/security/jwt/JwtUtils.java @@ -87,7 +87,7 @@ public class JwtUtils { } catch (IllegalArgumentException e) { log.error("JWT claims string is empty: {}", e.getMessage()); } - + log.warn(authToken+" is invalid"); return false; } @@ -108,18 +108,18 @@ public class JwtUtils { .build(); } -// private String getCookieValueByName(HttpServletRequest request, String name) { -// Cookie cookie = WebUtils.getCookie(request, name); -// return cookie != null ? cookie.getValue() : null; -// } - - private String getCookieValueByName(HttpServletRequest request, String name) { - Cookie cookie = WebUtils.getCookie(request, name); - if (cookie == null) { - System.out.println("Cookie with name '" + name + "' not found"); - return null; - } - System.out.println("Found cookie: " + cookie.getName() + " = " + cookie.getValue()); - return cookie.getValue(); - } + private String getCookieValueByName(HttpServletRequest request, String name) { + Cookie cookie = WebUtils.getCookie(request, name); + return cookie != null ? cookie.getValue() : null; + } + +// private String getCookieValueByName(HttpServletRequest request, String name) { +// Cookie cookie = WebUtils.getCookie(request, name); +// if (cookie == null) { +// System.out.println("Cookie with name '" + name + "' not found"); +// return null; +// } +// System.out.println("Found cookie: " + cookie.getName() + " = " + cookie.getValue()); +// return cookie.getValue(); +// } } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index de400a3..964c4da 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -22,8 +22,8 @@ cuuva.app.jwtRefreshCookieName=cuuva-jwt-refresh cuuva.app.jwtSecret= 275511b31c520562d69802ce4a913773102563891563a24062f44b3f312ca2bd034440e81836d1b4ccf4195f43db4c81a4e489a41f1ae0967afe468c9a361f4d ## For test -cuuva.app.jwtExpirationMs= 60000 -cuuva.app.jwtRefreshExpirationMs= 180000 +cuuva.app.jwtExpirationMs= 900000 +cuuva.app.jwtRefreshExpirationMs= 86400000 # SQL ?? ?? spring.jpa.show-sql=true