Browse Source

fix: lowercase default role name (#547)

pull/550/head v3.11.1
Richard Nemeth 9 months ago
committed by GitHub
parent
commit
1e9922b6b9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/keycloak/keycloak_admin.py

2
src/keycloak/keycloak_admin.py

@ -2305,7 +2305,7 @@ class KeycloakAdmin:
default_realm_roles = [ default_realm_roles = [
realm_role realm_role
for realm_role in all_realm_roles 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"] return default_realm_roles[0]["id"]

Loading…
Cancel
Save