|
|
@@ -1,6 +1,5 @@
|
|
|
package com.izouma.nineth.security;
|
|
|
|
|
|
-import com.izouma.nineth.repo.UserTokenRepo;
|
|
|
import io.jsonwebtoken.ExpiredJwtException;
|
|
|
import io.jsonwebtoken.SignatureException;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
@@ -54,7 +53,7 @@ public class JwtAuthorizationTokenFilter extends OncePerRequestFilter {
|
|
|
log.error(e.getMessage());
|
|
|
}
|
|
|
} else {
|
|
|
- log.warn("couldn't find bearer string, will ignore the header");
|
|
|
+ log.debug("couldn't find bearer string, will ignore the header");
|
|
|
}
|
|
|
|
|
|
log.debug("checking authentication for user '{}'", username);
|
|
|
@@ -78,7 +77,7 @@ public class JwtAuthorizationTokenFilter extends OncePerRequestFilter {
|
|
|
if (jwtTokenUtil.validateToken(authToken, userDetails)) {
|
|
|
UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(userDetails, null, userDetails.getAuthorities());
|
|
|
authentication.setDetails(new WebAuthenticationDetailsSource().buildDetails(request));
|
|
|
- log.info("authorized user '{}', setting security context", username);
|
|
|
+ log.debug("authorized user '{}', setting security context", username);
|
|
|
SecurityContextHolder.getContext().setAuthentication(authentication);
|
|
|
}
|
|
|
}
|