Skip to content

Commit

Permalink
fix(refresh): check kid from app correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
philloooo committed Feb 19, 2018
1 parent 6e203f3 commit df45874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authutils/token/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def get_public_key(kid, iss=None, attempt_refresh=True):
)
need_refresh = (
not hasattr(flask.current_app, 'jwt_public_keys')
or (kid and kid not in flask.current_app.jwt_public_keys)
or (kid and kid not in flask.current_app.jwt_public_keys.get(iss, {}))
)
if need_refresh and attempt_refresh:
refresh_jwt_public_keys(iss)
Expand Down

0 comments on commit df45874

Please sign in to comment.