Browse Source
Use the same request headers and cookies
pull/151/head
Ilya Glotov
4 years ago
No known key found for this signature in database
GPG Key ID: AE18CC224730A36D
1 changed files with
3 additions and
4 deletions
-
keycloak/keycloak_admin.py
|
|
@ -26,6 +26,7 @@ |
|
|
|
|
|
|
|
import json |
|
|
|
from builtins import isinstance |
|
|
|
from copy import deepcopy |
|
|
|
from typing import Iterable |
|
|
|
|
|
|
|
from .connection import ConnectionManager |
|
|
@ -1737,10 +1738,8 @@ class KeycloakAdmin: |
|
|
|
# merge custom headers to main headers |
|
|
|
headers.update(self.custom_headers) |
|
|
|
|
|
|
|
self._connection = ConnectionManager(base_url=self.server_url, |
|
|
|
headers=headers, |
|
|
|
timeout=60, |
|
|
|
verify=self.verify) |
|
|
|
self._connection = deepcopy(self.keycloak_openid.connection()) |
|
|
|
self._connection._headers.update(headers) |
|
|
|
|
|
|
|
def refresh_token(self): |
|
|
|
refresh_token = self.token.get('refresh_token') |
|
|
|