Skip to content

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

Merged
frasertweedale merged 1 commit intomasterfrom
fix/131-allow-empty-jwk-set-for-alg-None
Feb 19, 2025
Merged

allow validating "none" sigs with empty key set#132
frasertweedale merged 1 commit intomasterfrom
fix/131-allow-empty-jwk-set-for-alg-None

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
Contributor

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