Class ExternalAuthenticationImpl

    • Field Detail

      • extendedFlow

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

      • ExternalAuthenticationImpl

        public ExternalAuthenticationImpl()
        Constructor.
      • ExternalAuthenticationImpl

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

      • setRelyingPartyContextLookupStrategy

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