Sometimes a user's password needs to be updated before they can login, such as during a user migration from one backend to another when the stored password can't also be migrated. An API method that would return a boolean of whether a user's password needs to be updated would be helpful in this case. Clients could then direct users to a reset password form so that they can update their password.
Sometimes a user's password needs to be updated before they can login, such as during a user migration from one backend to another when the stored password can't also be migrated. An API method that would return a boolean of whether a user's password needs to be updated would be helpful in this case. Clients could then direct users to a reset password form so that they can update their password.
In the past, I implemented something similar in PHP against the Keycloak REST API, by checking for
UPDATE_PASSWORD
in the user'srequiredActions
: https://github.com/apache/airavata-php-gateway/blob/1a3956711af99fd9ad8d8c9e9496e7c7b1ca3c91/app/libraries/Keycloak/Keycloak.php#L390