On Wed, 2015-05-06 at 17:31 +0000, Leonardo Loch Zanivan wrote:
Unfortunatelly I think it's not possible right now.
Admin client uses Admin REST API, which isn't handling errors
correctly.
If you try to reset a password using Admin interface you will get a
generic error 500 saying "Failed to reset user password".
In the server the stacktrace shows:
Caused by: org.jboss.resteasy.spi.UnhandledException:
org.keycloak.models.ModelException: invalidPasswordMinLengthMessage
We could fill a JIRA to handle ModelException using JAX-RS exception
handlers, so the response will have the correct error and we could
show a better error message.
That would be nice.
On Wed, May 6, 2015 at 2:10 PM Benjamin Hansmann [alphaApps]
<b.hansmann(a)alphaapps.de> wrote:
Is one able to get an error message from the resetPassword
method of
admin-client if it somehow failed to reset the password, like
when the
password is too short or does not comply with the password
policy?
It throws an InternalServerErrorException in that case. On the
server
side there seems to be a ModelException:
invalidPasswordMinLengthMessage. That information is lost...
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user
--
[alphaApps] mobile development
Benjamin Hansmann
Nosthoffenstraße 46
D-40589 Düsseldorf
Germany
Mobile: +49 (0) 177 249 47 47
Email: b.hansmann(a)alphaapps.de