[keycloak-user] Keycloak update password with your own user federation throws exception

andreadonato54 at yahoo.it andreadonato54 at yahoo.it
Wed Dec 13 02:41:16 EST 2017


Hi, 
Posting here a question I found on StackOverflow on one issue I'm experiencing too, on keycloak 4.3.0-Final.
Thanks for your helpAndrea
--https://stackoverflow.com/questions/47388978/keycloak-update-password-with-your-own-user-federation-throws-exception

So I have been trying to update password on my keycloak where we have created our own user federation connection. So it works to loggin, create user and all is good. But when I turned on update password, there were some troubles. First required action: "update password" had to be turned on, the exception did not suggest that. But when that was on and after submitting a new password, everything went through, until it failes with the attached exception.So the functions ar ran, and the federation is updated, so the new password is valid, but it failes with a internal sever error, and I cant really make sense of it.It starts here: https://github.com/keycloak/keycloak/blob/c9da02912e38ea50aa496ee294f9ee9b8d50c756/services/src/main/java/org/keycloak/services/resources/LoginActionsService.java#L866Continues on to this method and another method in that file, which is one method under: https://github.com/keycloak/keycloak/blob/c9da02912e38ea50aa496ee294f9ee9b8d50c756/services/src/main/java/org/keycloak/services/managers/AuthenticationManager.java#L668And crashes in this method: https://github.com/keycloak/keycloak/blob/c5b01ca9cb17ec46d546519ca388e9ff5e67b0cf/services/src/main/java/org/keycloak/authentication/actiontoken/DefaultActionTokenKey.java#L66...Caused by: java.lang.NumberFormatException: For input string: "edwin at gmail"at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)at java.lang.Integer.parseInt(Integer.java:580)at java.lang.Integer.parseInt(Integer.java:615)at org.keycloak.authentication.actiontoken.DefaultActionTokenKey.from(DefaultActionTokenKey.java:76)....×   


More information about the keycloak-user mailing list