added clientNote to show the sign out option
This commit is contained in:
parent
399a23bd56
commit
d148a789f7
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue