Browse Source
fix: dont set bearer in refresh token directly
pull/566/head
Richard Nemeth
11 months ago
No known key found for this signature in database
GPG Key ID: 21C39470DF3DEC39
1 changed files with
0 additions and
2 deletions
-
src/keycloak/openid_connection.py
|
|
@ -450,8 +450,6 @@ class KeycloakOpenIDConnection(ConnectionManager): |
|
|
|
else: |
|
|
|
raise |
|
|
|
|
|
|
|
self.add_param_headers("Authorization", "Bearer " + self.token.get("access_token")) |
|
|
|
|
|
|
|
async def a__refresh_if_required(self): |
|
|
|
"""Refresh the token if it is expired.""" |
|
|
|
if datetime.now() >= self.expires_at: |
|
|
|