Class ExternalAuthenticationManager

    • Constructor Detail

      • ExternalAuthenticationManager

        public ExternalAuthenticationManager()
    • Method Detail

      • doAuthenticate

        public String doAuthenticate​(javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response)
        Description copied from class: AuthenticationManager
        Called from the authenticate method makes the necessary processing to check if the request is authenticated or not. The simplest way to check is if the #Authenticated_user session attribute is present and return it.
        Specified by:
        doAuthenticate in class AuthenticationManager
        Parameters:
        request - HTTP request object, used for handling parameters and session attributes
        Returns:
        • The user id (AD_User_ID) if the request is already authenticated or the authentication process succeeded
        • null if the request is not authenticated or authentication process failed (e.g. wrong password)
        See Also:
        DefaultAuthenticationManager
      • doExternalAuthentication

        public abstract AuthenticatedUser doExternalAuthentication​(javax.servlet.http.HttpServletRequest request,
                                                                   javax.servlet.http.HttpServletResponse response)
        To be implemented with the logic of the external authentication
        Parameters:
        request - HTTP request object to handle parameters and session attributes
        response - HTTP response object to handle possible redirects
        Returns:
        the information of the successfully authenticated user