Skip to content

Commit

Permalink
Fix debug logging of JWT token payload (#114)
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Strukelj <marko.strukelj@gmail.com>
  • Loading branch information
mstruk authored and scholzj committed Jun 8, 2021
1 parent aaf6ec2 commit 02824ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static void debugLogJWT(Logger log, String token) {
JWSObject jws;
try {
jws = JWSObject.parse(token);
log.debug("Token: {}", jws.getParsedString());
log.debug("Token: {}", jws.getPayload());
} catch (Exception e) {
log.debug("[IGNORED] Token doesn't seem to be JWT token: " + mask(token), e);
return;
Expand Down

0 comments on commit 02824ea

Please sign in to comment.