Verify user given text password

For some actions inside the app, I want to re-confirm the password. A user (in the app [after login]) has to enter her password in a dialog-box and then frontend should send it to the keycloak and there it should be verified and returns a proper response (e.g. yes/no). What is the best way to do it?

Thanks in advance

The specific way you want to do it isn’t available in Keycloak, but if you’re using an OIDC client, you can send them back to the login with prompt=login which will force the user to reauthenticate.