Class ExternalAuthenticationImpl

java.lang.Object
net.shibboleth.idp.authn.ExternalAuthentication
net.shibboleth.idp.authn.impl.ExternalAuthenticationImpl

public class ExternalAuthenticationImpl
extends ExternalAuthentication
Implementation of the ExternalAuthentication API that handles moving information in and out of request attributes.
  • Field Details

    • relyingPartyContextLookupStrategy

      @Nonnull private Function<ProfileRequestContext,​RelyingPartyContext> relyingPartyContextLookupStrategy
      Lookup function for relying party context.
    • extendedFlow

      private final boolean extendedFlow
      Track whether we were invoked from within another login flow.
  • Constructor Details

    • ExternalAuthenticationImpl

      public ExternalAuthenticationImpl()
      Constructor.
    • ExternalAuthenticationImpl

      public ExternalAuthenticationImpl​(boolean extended)
      Constructor.
      Parameters:
      extended - called as extended flow from another login flow
  • Method Details

    • setRelyingPartyContextLookupStrategy

      public void setRelyingPartyContextLookupStrategy​(@Nonnull Function<ProfileRequestContext,​RelyingPartyContext> strategy)
      Set lookup strategy for relying party context.
      Parameters:
      strategy - lookup strategy
    • doStart

      protected void doStart​(@Nonnull javax.servlet.http.HttpServletRequest request, @Nonnull ProfileRequestContext profileRequestContext, @Nonnull ExternalAuthenticationContext externalAuthenticationContext) throws ExternalAuthenticationException
      Initialize a request for external authentication by seeking out the information stored in the servlet session and exposing it as request attributes.
      Overrides:
      doStart in class ExternalAuthentication
      Parameters:
      request - servlet request
      profileRequestContext - current profile request context
      externalAuthenticationContext - external authentication context
      Throws:
      ExternalAuthenticationException - if an error occurs
    • doFinish

      protected void doFinish​(@Nonnull javax.servlet.http.HttpServletRequest request, @Nonnull javax.servlet.http.HttpServletResponse response, @Nonnull ProfileRequestContext profileRequestContext, @Nonnull ExternalAuthenticationContext extContext) throws ExternalAuthenticationException, IOException
      Complete a request for external authentication by seeking out the information stored in request attributes and transferring to the session's conversation state, and then transfer control back to the authentication web flow.
      Specified by:
      doFinish in class ExternalAuthentication
      Parameters:
      request - servlet request
      response - servlet response
      profileRequestContext - current profile request context
      extContext - external authentication context
      Throws:
      ExternalAuthenticationException - if an error occurs
      IOException - if the redirect cannot be issued