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

Sort headers when serializing to allow for headless JWT. #136

Merged
merged 3 commits into from
Apr 10, 2019

Conversation

zejn
Copy link
Collaborator

@zejn zejn commented Apr 9, 2019

Headers are usually small so this should not significantly impact
performance. Testing both equality between two serialized values (fails
on 3.6+ only) and equality with expected serialized JSON, which fails on pre 3.6
too.

This fixes #80 and is a less intrusive change than #81.

Headers are usually small so this should not significantly impact
performance. Testing both equality between two serialized values (fails
on 3.6+ only) and equality with expected serialized JSON, which fails on pre 3.6
too.
@codecov
Copy link

codecov bot commented Apr 9, 2019

Codecov Report

Merging #136 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #136   +/-   ##
=======================================
  Coverage   96.52%   96.52%           
=======================================
  Files          14       14           
  Lines        1065     1065           
=======================================
  Hits         1028     1028           
  Misses         37       37
Impacted Files Coverage Δ
jose/jws.py 96.63% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03707b1...6927cf8. Read the comment docs.

@codecov
Copy link

codecov bot commented Apr 9, 2019

Codecov Report

Merging #136 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #136   +/-   ##
=======================================
  Coverage   96.54%   96.54%           
=======================================
  Files          14       14           
  Lines        1071     1071           
=======================================
  Hits         1034     1034           
  Misses         37       37
Impacted Files Coverage Δ
jose/jws.py 96.72% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aac4c32...bdccde7. Read the comment docs.

@zejn
Copy link
Collaborator Author

zejn commented Apr 10, 2019

Merging.

@zejn zejn merged commit 8b863e8 into mpdavis:master Apr 10, 2019
@zejn zejn mentioned this pull request Apr 10, 2019
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.

Use OrderedDict for headers in jwt.decode and jws._encode_header
2 participants