Browse Source

fix: lowercase default role name

pull/547/head
Richard Nemeth 7 months ago
parent
commit
2c2e21da45
No known key found for this signature in database GPG Key ID: 21C39470DF3DEC39
  1. 2
      src/keycloak/keycloak_admin.py

2
src/keycloak/keycloak_admin.py

@ -2305,7 +2305,7 @@ class KeycloakAdmin:
default_realm_roles = [
realm_role
for realm_role in all_realm_roles
if realm_role["name"] == f"default-roles-{self.connection.realm_name}"
if realm_role["name"] == f"default-roles-{self.connection.realm_name}".lower()
]
return default_realm_roles[0]["id"]

Loading…
Cancel
Save