From 4d25128018305f9b7fadc692d6e370b663402a68 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Fri, 25 Oct 2024 15:25:03 +0200 Subject: [PATCH] add brute force enabled so we can render switch (#34282) fixes: #34065 Signed-off-by: Erik Jan de Wit --- .../keycloak/services/resources/admin/RealmAdminResource.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/src/main/java/org/keycloak/services/resources/admin/RealmAdminResource.java b/services/src/main/java/org/keycloak/services/resources/admin/RealmAdminResource.java index 198f16e39d..62879eec18 100644 --- a/services/src/main/java/org/keycloak/services/resources/admin/RealmAdminResource.java +++ b/services/src/main/java/org/keycloak/services/resources/admin/RealmAdminResource.java @@ -385,6 +385,7 @@ public class RealmAdminResource { rep.setDisplayName(realm.getDisplayName()); rep.setDisplayNameHtml(realm.getDisplayNameHtml()); rep.setSupportedLocales(realm.getSupportedLocalesStream().collect(Collectors.toSet())); + rep.setBruteForceProtected(realm.isBruteForceProtected()); if (auth.users().canView()) { rep.setRegistrationEmailAsUsername(realm.isRegistrationEmailAsUsername());