|
|
|
|
@ -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();
|
|
|
|
|
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();
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|