1
0
mirror of https://github.com/google/nomulus synced 2026-04-23 01:30:51 +00:00

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 e60ad58098
commit ec142caf9c

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;
}