From 2c2e21da45d5fb32b0e942be90352ea4d32ce37e Mon Sep 17 00:00:00 2001 From: Richard Nemeth Date: Mon, 8 Apr 2024 20:04:44 +0200 Subject: [PATCH] fix: lowercase default role name --- 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 a46fda9..aa05318 100644 --- a/src/keycloak/keycloak_admin.py +++ b/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"]