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

Bug: jsonwebtoken claim structure #781

Closed
tada5hi opened this issue Feb 7, 2024 · 0 comments · Fixed by #780
Closed

Bug: jsonwebtoken claim structure #781

tada5hi opened this issue Feb 7, 2024 · 0 comments · Fixed by #780

Comments

@tada5hi
Copy link
Contributor

tada5hi commented Feb 7, 2024

The problem right now is, that the jsowebtoken library enforces a structure, where public claims are located on another property ( data ) what should not be the case according to https://datatracker.ietf.org/doc/html/rfc7519#section-4.2.
Since predefined claims and public claims are on the same level, the rfc requires that there is no identical naming.
Due to the current structure, this library prevents other implementations in other programming languages from successfully decoding the token and accessing the public claims.
The jsonwebtoken crate also does not enforce a structure for the entire transferred claim and only checks whether the predefined claims exist during validation.

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 a pull request may close this issue.

1 participant