Keycloak - 如果用户被阻止则显示消息

Keycloak - Show a message if a user is blocked

如果用户在暴力检测后被阻止,我如何显示消息?

我正在使用 keycloak 2.0.0,但我一直遇到同样的错误 "Invalid username or password."

谢谢

UPDATE : 似乎这个问题已经在 1.9 版本中检测到。2.Final HERE

是它在返回的 UserRepresentation 中可用 http://www.keycloak.org/docs/rest-api/index.html#_get_represenation_of_the_user

您还可以在

上检查暴力破解状态

http://www.keycloak.org/docs/rest-api/index.html#_get_status_of_a_username_in_brute_force_detection