From fe31e7d55a8be487614a69bd81eadfc1e8654caa Mon Sep 17 00:00:00 2001 From: Gerard Date: Sun, 28 May 2023 14:13:25 +0200 Subject: [PATCH] fix: do not swap realm for user_realm when logging in with a client service account (#447) --- src/keycloak/openid_connection.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/keycloak/openid_connection.py b/src/keycloak/openid_connection.py index 3a865a1..4b9a532 100644 --- a/src/keycloak/openid_connection.py +++ b/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")