Search code examples
keycloakbrute-forcekeycloak-rest-api

How to enable brute force detection in keycloak using kcadm?


I need to enable brute force detection in security defences tab in keycloak, but i dont want to enable it manually is there way to do it using kcadm ???

thankyou in advance!


Solution

  • You can do this via the REST API and therefore via kcadm when creating or updating the realm.

    Check the RealmRepresentation for such attributes as bruteForceProtected, permanentLockout etc.