Interface AuthenticationAction
public interface AuthenticationAction
- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionapply(AuthenticationAttributes authenticationAttributes, AuthenticatedSessions authenticatedSessions, String authenticationTransactionId, AuthenticatorDescriptor authenticatorDescriptor) Applies the action after the authentication is done.
-
Method Details
-
apply
AuthenticationActionResult apply(AuthenticationAttributes authenticationAttributes, AuthenticatedSessions authenticatedSessions, String authenticationTransactionId, AuthenticatorDescriptor authenticatorDescriptor) Applies the action after the authentication is done. The apply method may be called several times if is part of a chain that needs to be re-runTherefore it's important to not produce side-effects more than once if the actions does such. If the action needs to keep track of this it can use the transactionId to see if it's a new flow of the same flow.
- Parameters:
authenticationAttributes- The attributes from the authentication and previous actionsauthenticatedSessions- All previous complete authentications found for this clientauthenticationTransactionId- The current authentication transaction IDauthenticatorDescriptor- The authenticator instance that the action is configured on- Returns:
- The possibly transformed authentication attributes.
-