Browse Source

Reverted connection deepcopy on KeycloakAdmin

pull/265/head
Marcos Pereira Jr 3 years ago
parent
commit
4ba3007e41
  1. 6
      keycloak/keycloak_admin.py

6
keycloak/keycloak_admin.py

@ -1920,8 +1920,10 @@ class KeycloakAdmin:
# merge custom headers to main headers # merge custom headers to main headers
headers.update(self.custom_headers) headers.update(self.custom_headers)
self._connection = deepcopy(self.keycloak_openid.connection())
self._connection._headers.update(headers)
self._connection = ConnectionManager(base_url=self.server_url,
headers=headers,
timeout=60,
verify=self.verify)
def refresh_token(self): def refresh_token(self):
refresh_token = self.token.get('refresh_token') refresh_token = self.token.get('refresh_token')

Loading…
Cancel
Save