Skip to content

Fix validation of the audience claim on the new API #562

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 3 commits into from
Nov 27, 2020

Conversation

b-water
Copy link

@b-water b-water commented Nov 26, 2020

As described in #560 our jwt audience contains an array with a single element which breaks the validation

@lcobucci
Copy link
Owner

I'd suggest to use the CompatibilityLayerTest to approach this from a functional level first. My tired brain missed that validation on https://github.com/lcobucci/jwt/blob/3.4/test/functional/CompatibilityLayerTest.php.

@lcobucci lcobucci added this to the 3.4.1 milestone Nov 27, 2020
@lcobucci lcobucci self-assigned this Nov 27, 2020
@lcobucci lcobucci added the Bug label Nov 27, 2020
@lcobucci lcobucci force-pushed the audienceSingleElementArray branch from c1581b2 to bb84b25 Compare November 27, 2020 00:51
Nico Schmitz and others added 3 commits November 27, 2020 01:56

Verified

This commit was signed with the committer’s verified signature.
lcobucci Luís Cobucci

Verified

This commit was signed with the committer’s verified signature.
lcobucci Luís Cobucci
On df9b734 we modified the type used to
handle that claim, aiming to ensure compatibility with v4.0.

However, we forgot to adjust the validation components.

Verified

This commit was signed with the committer’s verified signature.
lcobucci Luís Cobucci
@lcobucci lcobucci force-pushed the audienceSingleElementArray branch from bb84b25 to a64bafd Compare November 27, 2020 00:56
@lcobucci lcobucci changed the title Added Test for Issue #560 Fix validation of the audience claim on the new API Nov 27, 2020
@lcobucci lcobucci merged commit 484d9a6 into lcobucci:3.4 Nov 27, 2020
@lcobucci
Copy link
Owner

@b-water 🚢

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants