Class WebEngineFormAuthenticator

    • Constructor Detail

      • WebEngineFormAuthenticator

        public WebEngineFormAuthenticator()
    • Method Detail

      • handleLoginPrompt

        public Boolean handleLoginPrompt​(javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response,
                                         String baseURL)
        Description copied from interface: NuxeoAuthenticationPlugin
        Handles the Login Prompt.
        Specified by:
        handleLoginPrompt in interface NuxeoAuthenticationPlugin
        Parameters:
        request - the request
        response - the response
        Returns:
        true if AuthFilter must stop execution (ie: login prompt generated a redirect), false otherwise
      • getLoginPathInfo

        protected String getLoginPathInfo​(javax.servlet.http.HttpServletRequest request)
        Gets the path info to be used to redirect after login.
      • isLoginRequest

        public static boolean isLoginRequest​(javax.servlet.http.HttpServletRequest request)
      • onError

        public boolean onError​(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response)
        Description copied from interface: LoginResponseHandler
        Handles the login error response.
        Specified by:
        onError in interface LoginResponseHandler
        Parameters:
        request - the HTTP request
        response - the HTTP response
        Returns:
        true if error was handled, false otherwise
      • onSuccess

        public boolean onSuccess​(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response)
        Description copied from interface: LoginResponseHandler
        Handles login success response.
        Specified by:
        onSuccess in interface LoginResponseHandler
        Parameters:
        request - the HTTP request
        response - the HTTP response
        Returns:
        true if response was handled, false otherwise