Skip to content
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

Add missing exception to the catch chain #1284

Merged
merged 1 commit into from
Sep 13, 2017

Conversation

GasparMDQ
Copy link
Contributor

As stated by @vocoded on the issue #1279 firebase/php-jwt changed the way they report a problem with the certificate. If the signature is invalid, the verify function won't throw a DomainException and instead it will return false and then the decode function will throw a SignatureInvalidException. This fix adds the later exception to the catch chain so it will continue trying with other certificates.
I wasn't able to replicate the issue with a test but I try this fix on my project and it seems to had the problem fixed.

tl;dr
This fixes #1279

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 9, 2017
@bshaffer bshaffer merged commit ee03fa4 into googleapis:master Sep 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uncaught exception in Verify::verifyIdToken
3 participants