Skip to content
Permalink
Browse files
"Bearer " was getting removed from tokens which were then passed thro…
…ugh without the prefix to embedded calls.
  • Loading branch information
mifosio-04-04-2018 committed May 26, 2017
1 parent 910cced commit be78b4b127538f89bc8a7f2d0cad103b556d891a
Showing 2 changed files with 2 additions and 2 deletions.
@@ -78,7 +78,7 @@ public AnubisAuthentication authenticate(
jwtParser.parse(token);
logger.info("System token for user {}, with key timestamp {} authenticated successfully.", user, keyTimestamp);

return new AnubisAuthentication(token, user, permissions);
return new AnubisAuthentication(TokenConstants.PREFIX + token, user, permissions);
}
catch (final JwtException e) {
logger.debug("token = {}", token);
@@ -87,7 +87,7 @@ AnubisAuthentication authenticate(

logger.info("Tenant token for user {}, with key timestamp {} authenticated successfully.", user, keyTimestamp);

return new AnubisAuthentication(token,
return new AnubisAuthentication(TokenConstants.PREFIX + token,
jwt.getBody().getSubject(), permissions
);
}

0 comments on commit be78b4b

Please sign in to comment.