Commit 16df31d0 authored by Darshan M N's avatar Darshan M N
Browse files

Removing the bearer prefix

Showing with 1 addition and 1 deletion
+1 -1
......@@ -36,7 +36,7 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
logger.info("Method : " + req.getMethod());
String username = null;
String authToken = null;
if (header != null && header.startsWith(TOKEN_PREFIX)) {
if (header != null){
authToken = header.replace(TOKEN_PREFIX,"");
try {
username = jwtTokenUtil.getUsernameFromToken(authToken);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment