Skip to content

Fix compatibility with lcobucci/jwt ^4.2 #1282

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 5 commits into from
May 3, 2022

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Apr 19, 2022

Hey,
Here is a forward compatibility layer for lcobucci ^4.2 and specifically this change lcobucci/jwt#833 which forbids creating InMemory keys with empty strings.
Spotted in https://github.com/thephpleague/oauth2-server-bundle/runs/6077089570?check_suite_focus=true

@Sephster
Copy link
Member

Sephster commented May 3, 2022

Sorry for the delay on checking this. I had to work out why I'd used the assymetric signer for signing and the symmetric signer for decoding. It turns out it was to avoid a breaking change. Long term I want to modify the lib so users can pass their own config but for now, will need to stick with this. Thanks for spotting this

@Sephster Sephster merged commit 7aeb7c4 into thephpleague:master May 3, 2022
@chalasr chalasr deleted the fix-empty-pubkey branch May 3, 2022 22:55
@chalasr
Copy link
Member Author

chalasr commented May 4, 2022

No worries, thanks for tweaking and merging this.

@micronax
Copy link

micronax commented May 8, 2022

Hi @Sephster, is there a planned release with this fix?

@Sephster
Copy link
Member

Sephster commented May 8, 2022

Likely in the next 48 hours 👍

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

Successfully merging this pull request may close these issues.

4 participants