Skip to content

Commit

Permalink
Requires token signature when refreshing tokens (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort authored Jul 2, 2024
1 parent a358e69 commit 02aa387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keystone_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,6 @@ def _refresh_tokens(self, force: bool = True, timeout: int = default_timeout) ->
)

response.raise_for_status()
refresh_payload = jwt.decode(self._refresh_token, options={"verify_signature": False})
refresh_payload = jwt.decode(self._refresh_token)
self._refresh_token = response.json().get("refresh")
self._refresh_expiration = datetime.fromtimestamp(refresh_payload["exp"])

0 comments on commit 02aa387

Please sign in to comment.