Skip to content

Commit

Permalink
Merge pull request #10 from uc-cdis/fix/refresh
Browse files Browse the repository at this point in the history
fix(refresh): check kid from app correctly
  • Loading branch information
rudyardrichter authored Feb 19, 2018
2 parents deb9b33 + df45874 commit 62b4e25
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 62b4e25

Please sign in to comment.