Class ContinueSAMLAuthentication

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, MessageSource, MessageSourceAware, Action

public class ContinueSAMLAuthentication
extends AbstractAuthenticationAction
An action that checks for an ExternalAuthenticationContext for a signaled event via the ExternalAuthenticationContext.getAuthnError() method, and otherwise enforces the presence of an inbound SAML Response to process.

This is a bridge from the external portion of the SAML proxy implementation to transition back into the flow and pick up any signaled errors if necessary.

Event:
EventIds.PROCEED_EVENT_ID, EventIds.MESSAGE_PROC_ERROR, AuthnEventIds.INVALID_AUTHN_CTX, AuthnEventIds.NO_CREDENTIALS, various
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
    • extContext

      @Nullable private ExternalAuthenticationContext extContext
      Context containing the result to examine.
  • Constructor Details

    • ContinueSAMLAuthentication

      public ContinueSAMLAuthentication()
  • Method Details

    • doPreExecute

      protected boolean doPreExecute​(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
      Performs this authentication action's pre-execute step. Default implementation just returns true.
      Overrides:
      doPreExecute in class AbstractAuthenticationAction
      Parameters:
      profileRequestContext - the current IdP profile request context
      authenticationContext - the current authentication context
      Returns:
      true iff execution should continue
    • doExecute

      protected void doExecute​(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
      Performs this authentication action. Default implementation throws an exception.
      Overrides:
      doExecute in class AbstractAuthenticationAction
      Parameters:
      profileRequestContext - the current IdP profile request context
      authenticationContext - the current authentication context