Skip to content

Fix compatibility with lcobucci/jwt ^4.2#1282

Merged
Sephster merged 5 commits intothephpleague:masterfrom
chalasr:fix-empty-pubkey
May 3, 2022
Merged

Fix compatibility with lcobucci/jwt ^4.2#1282
Sephster merged 5 commits intothephpleague:masterfrom
chalasr:fix-empty-pubkey

Conversation

@chalasr
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

chalasr commented May 4, 2022

No worries, thanks for tweaking and merging this.

@micronax
Copy link
Copy Markdown

micronax commented May 8, 2022

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

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