How to implement password update / password reset feature when creating a new user storage provider

Hi! I am currently using https://github.com/opensingular/singular-keycloak-database-federation to federate my users from mysql database. Unfortunately it doesnt support any write operation back to the database. Any advise on how to make password reset functionality work with federated user from mysql database is appreciated.
Thank you in advance

Hello @useEffects, you should ask for an evolution on the extension repo, or fork it and implement by yourself the CredentialInputUpdater interface on the UserStorageProvider.

Looking at the extension code, the interface is implemented (here), but the method for credential update is not : here

Another way to have a password reset functionality, using this extension, would be to not use the keycloak built-in functionality but to handle it in your client app. This can be done by overriding the keycloak login theme, in login.ftl, replace the link to password reset

<#if realm.resetPasswordAllowed>
   <span><a tabindex="6" href="${url.loginResetCredentialsUrl}">${msg("doForgotPassword")}</a></span>
</#if>

by a link to your application (hardcoded in this example)

<#if realm.resetPasswordAllowed>
   <span><a tabindex="6" href="https://myapp.com/resetPassword">${msg("doForgotPassword")}</a></span>
</#if>

With this approach you’ll have to handle the entire reset password functionality in your client app (frontend + backend).

Related documentation : UserStorage SPI, Themes

Replacing the url in the theme is amazing idea omg! Ill be forking and try to extend the code and post updates. Thank you very much for the reply! I didnt notice the method is not implemented. Thank you very much!