Hi,
Keycloak provides the Update Password Required Action just for this purpose.
As the "Update Password" Required Action is already an Application Initiated Action you can use the Keycloak angular package to initiate this required action on a button click or so.
calling the following on button click would do the trick.
this.keycloakService.login({
redirectUri: window.location.href,
action: 'UPDATE_PASSWORD',
});
keycloakService is an instance of the Keycloak Service provided by the package.
Once the user is done resetting the password, they are redirected to the URL specified with redirectURI.
hope this helps.
Regards,
Saurav Mohan V