Interface AuthenticationAction


public interface AuthenticationAction
Since:
3.0.0
  • 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-run

      Therefore 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 actions
      authenticatedSessions - All previous complete authentications found for this client
      authenticationTransactionId - The current authentication transaction ID
      authenticatorDescriptor - The authenticator instance that the action is configured on
      Returns:
      The possibly transformed authentication attributes.