Hi,
When you says it does not accept it, you have an exception at runtime ?
Because you have addRequiredAction(String string)
On Mon, Apr 29, 2019 at 12:13 PM GESLIN Fabrice <
fabrice.geslin-prestataire(a)laposte.fr> wrote:
Hi,
We're trying to trigger a custom required action as part of the reset
credential.
For this we plan to mimic the implementation of the authenticate method of
the org.keycloak.authentication.authenticators.resetcred.ResetPassword.java
:
@Override
public void authenticate(AuthenticationFlowContext context) {
if (context.getExecution().isRequired() ||
(context.getExecution().isOptional() &&
configuredFor(context))) {
context.getAuthenticationSession().addRequiredAction(UserModel.RequiredAction.UPDATE_PASSWORD);
}
context.success();
}
But the question is what value should we pass to the addRequiredAction() ?
This method seems to only accept the predefined required actions mapped to
the values from the UserModel.RequiredAction enum.
Any help is welcome .
Fabrice Geslin
Groupe La Poste
Post-scriptum La Poste
Ce message est confidentiel. Sous reserve de tout accord conclu par
ecrit entre vous et La Poste, son contenu ne represente en aucun cas un
engagement de la part de La Poste. Toute publication, utilisation ou
diffusion, meme partielle, doit etre autorisee prealablement. Si vous
n'etes pas destinataire de ce message, merci d'en avertir immediatement
l'expediteur.
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user