Expand ID Token Auth verifier to catch all exceptions (#1960)

This commit is contained in:
Pavlo Tkach 2023-03-13 12:12:47 -04:00 committed by GitHub
parent de6d73930c
commit d996ef974c

View file

@ -55,7 +55,7 @@ public abstract class IdTokenAuthenticationBase implements AuthenticationMechani
JsonWebSignature token;
try {
token = tokenVerifier.verify(rawIdToken);
} catch (TokenVerifier.VerificationException e) {
} catch (Exception e) {
logger.atInfo().withCause(e).log("Error when verifying access token");
return AuthResult.NOT_AUTHENTICATED;
}