User Password Update flow

Hi all. I have a Java web application within which I decided to add a password update. I can’t and don’t know how to configure the flow in KEYCLOAK. I’m looking forward to your advice

You can generate a password update link in this form:

<sso url>/[auth/]realms/[realm name]/protocol/openid-connect/auth?response_type=code&client_id=<CLIENT_ID>&redirect_uri=<YOUR SITE URL URLENCODED>&kc_action=UPDATE_PASSWORD

The [auth/] part depends if you still use the auth/ prefix in keycloak (KC_HTTP_RELATIVE_PATH=/auth).

The redirect_uri has to be allowed in the client settings (the client of your java web application). It will be used to redirect the user after succesful password update.

If you use this link and show it in your app all the rest (the password update flow) is already managed in Keycloak.

2 Likes