-
-
Save murraco/5dae435e69e0a4265a060d7a96d7be55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String token = jwtTokenProvider.resolveToken((HttpServletRequest) req); | |
if (token != null && jwtTokenProvider.validateToken(token)) { | |
Authentication auth = jwtTokenProvider.getAuthentication(token); | |
SecurityContextHolder.getContext().setAuthentication(auth); | |
} | |
filterChain.doFilter(req, res); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment