Class ConditionalLoaAuthenticator
java.lang.Object
org.keycloak.authentication.authenticators.conditional.ConditionalLoaAuthenticator
- All Implemented Interfaces:
AuthenticationFlowCallback,Authenticator,ConditionalAuthenticator,Provider
public class ConditionalLoaAuthenticator
extends Object
implements ConditionalAuthenticator, AuthenticationFlowCallback
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaction(AuthenticationFlowContext context) Called from a form action invocation.voidclose()booleanmatchCondition(AuthenticationFlowContext context) voidTriggered after the authentication flow is successfully finished.voidonTopFlowSuccess(AuthenticationFlowModel topFlow) Triggered after the top authentication flow is successfully finished.booleanDoes this authenticator require that the user has already been identified? That AuthenticatorContext.getUser() is not null?voidsetRequiredActions(KeycloakSession session, RealmModel realm, UserModel user) Set actions to configure authenticatorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.authentication.Authenticator
areRequiredActionsEnabled, getRequiredActionsMethods inherited from interface org.keycloak.authentication.authenticators.conditional.ConditionalAuthenticator
authenticate, configuredFor
-
Field Details
-
LEVEL
- See Also:
-
MAX_AGE
- See Also:
-
DEFAULT_MAX_AGE
public static final int DEFAULT_MAX_AGE- See Also:
-
STORE_IN_USER_SESSION
Deprecated.- See Also:
-
-
Constructor Details
-
ConditionalLoaAuthenticator
-
-
Method Details
-
matchCondition
- Specified by:
matchConditionin interfaceConditionalAuthenticator
-
onParentFlowSuccess
Description copied from interface:AuthenticationFlowCallbackTriggered after the authentication flow is successfully finished. The target authentication flow is the one where this authenticator is configured. Authenticator should finish successfully in the flow (or being evaluated to true in case of Conditional Authenticator) in order to trigger this callback at the successful end of the flow- Specified by:
onParentFlowSuccessin interfaceAuthenticationFlowCallback- Parameters:
context- which encapsulate various useful data
-
onTopFlowSuccess
Description copied from interface:AuthenticationFlowCallbackTriggered after the top authentication flow is successfully finished. It is really suitable for last verification of successful authentication- Specified by:
onTopFlowSuccessin interfaceAuthenticationFlowCallback- Parameters:
topFlow- which was successfully finished
-
action
Description copied from interface:AuthenticatorCalled from a form action invocation.- Specified by:
actionin interfaceAuthenticator
-
requiresUser
public boolean requiresUser()Description copied from interface:AuthenticatorDoes this authenticator require that the user has already been identified? That AuthenticatorContext.getUser() is not null?- Specified by:
requiresUserin interfaceAuthenticator- Returns:
-
setRequiredActions
Description copied from interface:AuthenticatorSet actions to configure authenticator- Specified by:
setRequiredActionsin interfaceAuthenticator
-
close
public void close()
-