We start using Keycloak as Identity and access management for our new project design and enabled Brute Force Detection for my newly created Realm.
It’s working, but in my use-case, I have to notify my user they have to wait another 30min to try login again since they have reached Max Login Failure. But I got ‘invalid_grant’ as error same message whenever I try with the wrong / correct password after max failure reached.
{ "error": "invalid_grant", "error_description": "Invalid user credentials" }
How do I different the response message to notify my users?