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
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
2 deletions
-
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") |
|
|
|