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

Bugfix: the "use" attr on the jwks key is optional if only one key is present #1089

Merged
merged 1 commit into from
May 16, 2021
Merged

Bugfix: the "use" attr on the jwks key is optional if only one key is present #1089

merged 1 commit into from
May 16, 2021

Conversation

andreaslarssen
Copy link
Contributor

@andreaslarssen andreaslarssen commented May 11, 2021

I couldn't find any contribution docs, and wasn't able to set this up locally, so I coded this "blindly". If someone could verify my changes, that would be great.

One remark: Is the check for multiple key candidates needed? Removing it would result in the client using whatever key was defined last, and either the verification will fail (wrong key), or it will be verified (right key, by chance). Would not uncover an error in the jwks endpoint, but is that really up to the client to uncover?

EDIT: Could this be released as a patch of version 11?

@damienbod
Copy link
Owner

@andreaslarssen Thanks for the PR, I'll review and merge to 11 is possible

@andreaslarssen
Copy link
Contributor Author

@damienbod thanks. Let me know if there's anything wrong with it, or if you have other inputs, and I'll fix as soon as possible. Also let me know your thoughts on my comment on the validation of no of keys

@damienbod damienbod merged commit 1461c12 into damienbod:main May 16, 2021
@damienbod
Copy link
Owner

thanks, released in version 11.6.9

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.

2 participants