From 1e9922b6b9067095b0b4c4d9fe99c20d060440ed Mon Sep 17 00:00:00 2001 From: Richard Nemeth Date: Mon, 8 Apr 2024 20:13:17 +0200 Subject: [PATCH] fix: lowercase default role name (#547) --- src/keycloak/keycloak_admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keycloak/keycloak_admin.py b/src/keycloak/keycloak_admin.py index a46fda91..aa05318c 100644 --- a/src/keycloak/keycloak_admin.py +++ b/src/keycloak/keycloak_admin.py @@ -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"]