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

allow validating "none" sigs with empty key set #132

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

frasertweedale
Copy link
Owner

You don't need a key to validate a "none" signature, but attempting to do so fails with NoUsableKeys error. Add a special case to the JWS verification to handle this situation.

Fixes: #131

You don't need a key to validate a "none" signature, but attempting
to do so fails with `NoUsableKeys` error.  Add a special case to the
JWS verification to handle this situation.

Fixes: #131
@frasertweedale
Copy link
Owner Author

@torgeirsh I welcome your review.

@torgeirsh
Copy link

Looks great, thanks!

@frasertweedale frasertweedale merged commit cbda840 into master Feb 19, 2025
16 checks passed
@frasertweedale frasertweedale deleted the fix/131-allow-empty-jwk-set-for-alg-None branch February 19, 2025 16:57
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.

Edge case with unsigned JWTs.
2 participants