From d148a789f76bfe5e2d6460c0b5a716ebe50c5821 Mon Sep 17 00:00:00 2001 From: Daniele Martinoli <86618610+dmartinol@users.noreply.github.com> Date: Tue, 30 May 2023 15:55:38 +0200 Subject: [PATCH] added clientNote to show the sign out option --- .../authenticators/resetcred/ResetPassword.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/src/main/java/org/keycloak/authentication/authenticators/resetcred/ResetPassword.java b/services/src/main/java/org/keycloak/authentication/authenticators/resetcred/ResetPassword.java index 1eb101674f..8463d97b26 100755 --- a/services/src/main/java/org/keycloak/authentication/authenticators/resetcred/ResetPassword.java +++ b/services/src/main/java/org/keycloak/authentication/authenticators/resetcred/ResetPassword.java @@ -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 Bill Burke * @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(); }