Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Optimize jwt_decode_handler #344

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Jun 22, 2017

  1. There is no need to decode the payload without verification first, in
    case api_settings.JWT_PUBLIC_KEY is used.
  2. It also skips decoding in case
    api_settings.JWT_GET_USER_SECRET_KEY is not used.
    This might be a problem in case somebody is monkey-patching
    jwt_get_secret_key, but that should not be considered stable/public
    API, should it?

I had this still from when working on #341.
Might be better to keep this for after the currently planned release in any way.

@blueyed blueyed force-pushed the optimize-jwt_decode_handler branch from f4c041e to e69b7e2 Compare September 15, 2017 10:00
@blueyed
Copy link
Contributor Author

blueyed commented Sep 15, 2017

@jpadilla
Anything to be done here?

(the build failure seems unrelated - I've only just rebased it; should be fixed with #369)

@blueyed blueyed force-pushed the optimize-jwt_decode_handler branch from e69b7e2 to db5dc36 Compare September 15, 2017 16:50
1. There is no need to decode the payload without verification first, in
   case `api_settings.JWT_PUBLIC_KEY` is used.
2. It also skips decoding in case
   `api_settings.JWT_GET_USER_SECRET_KEY` is not used.
   This might be a problem in case somebody is monkey-patching
   `jwt_get_secret_key`, but that should not be considered stable/public
   API, should it?
@blueyed blueyed force-pushed the optimize-jwt_decode_handler branch from db5dc36 to 64f0859 Compare October 9, 2017 23:43
@codecov
Copy link

codecov bot commented Oct 10, 2017

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #344   +/-   ##
=======================================
  Coverage   90.67%   90.67%           
=======================================
  Files          14       14           
  Lines         847      847           
  Branches       29       29           
=======================================
  Hits          768      768           
  Misses         66       66           
  Partials       13       13
Flag Coverage Δ
#codecov 90.67% <ø> (ø) ⬆️
#dj110 87.48% <ø> (ø) ⬆️
#dj111 87.48% <ø> (ø) ⬆️
#dj18 89.84% <ø> (ø) ⬆️
#dj19 89.84% <ø> (ø) ⬆️
#drf31 89.84% <ø> (ø) ⬆️
#drf32 89.84% <ø> (ø) ⬆️
#drf33 89.84% <ø> (ø) ⬆️
#drf34 90.67% <ø> (ø) ⬆️
#drf35 90.31% <ø> (ø) ⬆️
#drf36 90.31% <ø> (ø) ⬆️
#py27 90.67% <ø> (ø) ⬆️
#py33 89.49% <ø> (ø) ⬆️
#py34 89.49% <ø> (ø) ⬆️
Impacted Files Coverage Δ
rest_framework_jwt/utils.py 100% <ø> (ø) ⬆️

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 0a0bd40...64f0859. Read the comment docs.

Repository owner deleted a comment from codecov bot Oct 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant