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

[v2] jws: allow specifing parse format/jwt: disallow JSON #1078

Merged
merged 8 commits into from
Feb 19, 2024

Conversation

lestrrat
Copy link
Collaborator

@lestrrat lestrrat commented Feb 19, 2024

Solution #1077 for v2

Adds the ability to control which serialization formats are accepted in jws.Parse and jws.Verify, and further adds jwt.WithCompactOnly(bool) to the global settings to disallow parsing of JSON formats.

This makes jwx better adhere to the RFC while keeping backwards compatibility.

@lestrrat
Copy link
Collaborator Author

@P3ngu1nW

@lestrrat lestrrat merged commit 73b6b6d into develop/v2 Feb 19, 2024
30 checks passed
@lestrrat lestrrat deleted the disallow-json-format branch February 19, 2024 22:48
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.

1 participant