Skip to content

Add missing exception to the catch chain#1284

Merged
bshaffer merged 1 commit into
googleapis:masterfrom
GasparMDQ:fixes-1279
Sep 13, 2017
Merged

Add missing exception to the catch chain#1284
bshaffer merged 1 commit into
googleapis:masterfrom
GasparMDQ:fixes-1279

Conversation

@GasparMDQ

Copy link
Copy Markdown
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