Skip to content
Permalink
Browse files
Merge pull request #8 from myrle-krantz/develop
"Bearer " was getting removed from tokens which were then passed thro…
  • Loading branch information
myrle-krantz committed May 26, 2017
2 parents 910cced + be78b4b commit 5f6e3bbc1fd236ab92469cde2d92127fbbe24a00
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 5f6e3bb

Please sign in to comment.