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

LAGIER Aymeric Aymeric.LAGIER at ext.imprimerienationale.fr
Wed Dec 13 03:22:36 EST 2017


Hello,

I have the same problem with the "reset password" feature combined with an OpenLDAP User Federation.

The password update works fine but not the reset one.

In the DefaultActionTokenKey from(String serializedKey)  in https://github.com/keycloak/keycloak/blob/c5b01ca9cb17ec46d546519ca388e9ff5e67b0cf/services/src/main/java/org/keycloak/authentication/actiontoken/DefaultActionTokenKey.java#L66 

The split is done on the ".". Emails contain "." so it fails.

Thanks

Aymeric

-----Message d'origine-----
De : keycloak-user-bounces at lists.jboss.org [mailto:keycloak-user-bounces at lists.jboss.org] De la part de andreadonato54 at yahoo.it
Envoyé : mercredi 13 décembre 2017 08:41
À : keycloak-user at lists.jboss.org
Objet : [keycloak-user] Keycloak update password with your own user federation throws exception

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)....×   
_______________________________________________
keycloak-user mailing list
keycloak-user at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5589 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20171213/e42b44b3/attachment.bin 


More information about the keycloak-user mailing list