-
-
Notifications
You must be signed in to change notification settings - Fork 694
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
Add support for OrderedDict to headers to make possible custom ordering #715
Comments
please upgrade to latest pypi release & report again |
Hi, @auvipy thanks for looking into this.
|
I have no objections on introducing this to support RFC 8225. @kadabusha wanna work on it? |
Hi, @jpadilla |
Related issue jpadilla#715
@jpadilla the PR was filed here: #721 @sabrina981 I don't quite follow your question.
It is needed for particular implementations, e.g. one that is called Stir-Shaken in SIP world. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Still valid. |
PR was merged: |
Headers order in jwt.encode() follows values hardcoded in api_jws.py:
and can not be changed.
An issue referenced to old #116 - new RFC 8225 has pretty strict requirements for headers - they should be ordered lexicographically (A-Z)
Expected Result
Values for headers should not override the configured ones
Actual Result
No matter what order is used for headers, jwt.encode() always uses hardcoded typ/alg key names on the first places.
Reproduction Steps
System Information
The text was updated successfully, but these errors were encountered: