Browse Source

fix: do not swap realm for user_realm when logging in with a client service account (#447)

pull/430/head
Gerard 1 year ago
committed by elias.hamacher
parent
commit
fe31e7d55a
  1. 2
      src/keycloak/openid_connection.py

2
src/keycloak/openid_connection.py

@ -298,8 +298,6 @@ class KeycloakOpenIDConnection(ConnectionManager):
grant_type = [] grant_type = []
if self.client_secret_key: if self.client_secret_key:
if self.user_realm_name:
self.realm_name = self.user_realm_name
grant_type.append("client_credentials") grant_type.append("client_credentials")
elif self.username and self.password: elif self.username and self.password:
grant_type.append("password") grant_type.append("password")

Loading…
Cancel
Save