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

JWT: The key sorted in the header may cause some unknown problems #865

Closed
zengzzzzz opened this issue Mar 10, 2023 · 2 comments
Closed

JWT: The key sorted in the header may cause some unknown problems #865

zengzzzzz opened this issue Mar 10, 2023 · 2 comments

Comments

@zengzzzzz
Copy link

Suggest an idea for this project.
#715
I have found a problem when i use the jwt.encode() method, and I already read the issue 715 . In order to support RF8225 in issue 715, the keys in the headers will be forced to be sorted by the codejson.dumps(....,sort_keys=True). When i using the jwt.encode() method, the order of the keys in headers cannot be directly specified, resulting in the generated token may has the conflict with the token generated in other ways that have not yet supported RFC8225 .I hope to get help with:

  1. I currently haven't found a way to customize the headers order in the jwt.encode() method
  2. it is possible to try to be compatible with non-RFC8225 implementations without specifying mandatory ordering
@zengzzzzz
Copy link
Author

that is my jwt version problem , I will check it again . if not any porblems , i will close this issue

@zengzzzzz
Copy link
Author

zengzzzzz commented Mar 10, 2023

this issue has been resolved - sorting headers is now supported in version newner than 2.6.0 . thanks .

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

No branches or pull requests

1 participant