Skip to content

Commit

Permalink
fix: lowercase default role name (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryshoooo authored Apr 8, 2024
1 parent 49f2d8b commit 1e9922b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keycloak/keycloak_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2305,7 +2305,7 @@ def get_default_realm_role_id(self):
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"]

Expand Down

0 comments on commit 1e9922b

Please sign in to comment.