Package org.keycloak.authentication
Interface AuthenticationFlowCallback
- All Superinterfaces:
Authenticator
,Provider
- All Known Implementing Classes:
ConditionalLoaAuthenticator
Callback to be triggered during various lifecycle events of authentication flow.
The
AuthenticatorFactory
, which creates this Authenticator should implement AuthenticationFlowCallbackFactory
interface.- Author:
- Marek Posolda
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Triggered after the authentication flow is successfully finished.default void
onTopFlowSuccess
(AuthenticationFlowModel topFlow) Triggered after the top authentication flow is successfully finished.Methods inherited from interface org.keycloak.authentication.Authenticator
action, areRequiredActionsEnabled, authenticate, configuredFor, getRequiredActions, requiresUser, setRequiredActions
-
Method Details
-
onParentFlowSuccess
Triggered 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- Parameters:
context
- which encapsulate various useful data
-
onTopFlowSuccess
Triggered after the top authentication flow is successfully finished. It is really suitable for last verification of successful authentication- Parameters:
topFlow
- which was successfully finished
-