added clientNote to show the sign out option

This commit is contained in:
Daniele Martinoli 2023-05-30 15:55:38 +02:00 committed by Pedro Igor
parent 399a23bd56
commit d148a789f7

View file

@ -18,9 +18,12 @@
package org.keycloak.authentication.authenticators.resetcred;
import org.keycloak.authentication.AuthenticationFlowContext;
import org.keycloak.authentication.requiredactions.UpdatePassword;
import org.keycloak.models.Constants;
import org.keycloak.models.UserModel;
import org.keycloak.models.credential.PasswordCredentialModel;
/**
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @version $Revision: 1 $
@ -35,6 +38,7 @@ public class ResetPassword extends AbstractSetRequiredActionAuthenticator {
(context.getExecution().isConditional() &&
configuredFor(context))) {
context.getAuthenticationSession().addRequiredAction(UserModel.RequiredAction.UPDATE_PASSWORD);
context.getAuthenticationSession().setClientNote(Constants.KC_ACTION_EXECUTING, UserModel.RequiredAction.UPDATE_PASSWORD.name());
}
context.success();
}