Browse Source

Merge pull request #236 from abbradar/no-force-realm

Don't force realm name when using secret key
pull/245/head^2
Marcos Pereira 3 years ago
committed by GitHub
parent
commit
38dace0bf7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      keycloak/keycloak_admin.py

2
keycloak/keycloak_admin.py

@ -1956,7 +1956,7 @@ class KeycloakAdmin:
return r return r
def get_token(self): def get_token(self):
token_realm_name = 'master' if self.client_secret_key else self.user_realm_name or self.realm_name
token_realm_name = self.user_realm_name or self.realm_name
self.keycloak_openid = KeycloakOpenID(server_url=self.server_url, client_id=self.client_id, self.keycloak_openid = KeycloakOpenID(server_url=self.server_url, client_id=self.client_id,
realm_name=token_realm_name, verify=self.verify, realm_name=token_realm_name, verify=self.verify,
client_secret_key=self.client_secret_key, client_secret_key=self.client_secret_key,

Loading…
Cancel
Save