From 86a62c2c07df81ee9bf88b2f233d2b6c7ae6c22e Mon Sep 17 00:00:00 2001 From: Ilia Vassilev Date: Thu, 23 Jun 2022 10:22:20 -0400 Subject: [PATCH] [ELY-2353] Add trace logging in org.wildfly.security.http.oidc.TokenValidator#parseAndVerifyToken --- .../main/java/org/wildfly/security/http/oidc/TokenValidator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/http/oidc/src/main/java/org/wildfly/security/http/oidc/TokenValidator.java b/http/oidc/src/main/java/org/wildfly/security/http/oidc/TokenValidator.java index 899050f0cc9..a4c5f64fbf4 100644 --- a/http/oidc/src/main/java/org/wildfly/security/http/oidc/TokenValidator.java +++ b/http/oidc/src/main/java/org/wildfly/security/http/oidc/TokenValidator.java @@ -93,6 +93,7 @@ public VerifiedTokens parseAndVerifyToken(final String idToken, final String acc JwtClaims jwtClaims = new JwtConsumerBuilder().setSkipSignatureVerification().setSkipAllValidators().build().processToClaims(accessToken); return new VerifiedTokens(new IDToken(idJwtClaims), new AccessToken(jwtClaims)); } catch (InvalidJwtException e) { + log.tracef("Problem parsing ID token: " + idToken, e); throw log.invalidIDToken(e); } }