Skip to content

fix: add signature verification to IdTokenVerifier #861

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Apr 13, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
🦉 Updates from OwlBot post-processor
  • Loading branch information
gcf-owl-bot[bot] committed Mar 30, 2022
commit 17affb3363c280e4fd71fbbacf0944250f638e64
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ public boolean verify(IdToken idToken) throws VerificationException {
// Short-circuit signature types
if (!SUPPORTED_ALGORITHMS.contains(idToken.getHeader().getAlgorithm())) {
throw new VerificationException(
"Unexpected signing algorithm: expected either RS256 or ES256 but got " + idToken.getHeader().getAlgorithm());
"Unexpected signing algorithm: expected either RS256 or ES256 but got "
+ idToken.getHeader().getAlgorithm());
}

PublicKey publicKeyToUse = null;
Expand Down