Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/changelog/122247.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 122247
summary: Improve jwt logging on failed auth
area: Authentication
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,10 @@ public void authenticate(final AuthenticationToken authenticationToken, final Ac
+ tokenPrincipal
+ "] with header ["
+ jwtAuthenticationToken.getSignedJWT().getHeader()
+ "] and claimSet ["
+ jwtAuthenticationToken.getJWTClaimsSet()
+ "]";

if (logger.isTraceEnabled()) {
logger.trace(msg, ex);
logger.trace(msg + " and claimSet [" + jwtAuthenticationToken.getJWTClaimsSet() + "]", ex);
} else {
logger.debug(msg + " Cause: " + ex.getMessage()); // only log the stack trace at trace level
}
Expand Down