Browse Source

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

pull/452/head v2.16.5
Gerard 12 months ago
committed by GitHub
parent
commit
00ada879c6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/keycloak/openid_connection.py

2
src/keycloak/openid_connection.py

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

Loading…
Cancel
Save