aswzen
aswzen

Reputation: 1642

How to do forgot password in keycloak via API

We are creating an app that has a feature to reset their password respectively, since we are using keycloak so that thing will be featured via keycloak page itself, but our client need the forgot password will be provided in the app, so i need to hit the forgot password api like below flow.

App Forgot Password Page > Fill email only and proceed > User receive reset password link > Open link > Keycloak reset password page

But seems that api is not existed in the keycloak.

As far i only found below apis

Any suggestion? Thank you in advance


Hi there, this is 2021, my solution at this time was by using keycloak library in java service, so the service working as aggregator between my web app to keycloak, and still we are using above apis mentioned that need realm access. Good luck.

Upvotes: 3

Views: 8465

Answers (1)

Utsav Shah
Utsav Shah

Reputation: 177

You can set required action for the user to UPDATE_PASSWORD and when user tries to log in, they will be prompted with Setting up their password.

Keycloak Admin APIs - UserResource You can update the user and in the UserRepresentation you can set that required action.

Upvotes: 1

Related Questions