Class SSOFallbackBasicAuthenticationDriver

  • All Implemented Interfaces:
    AuthenticationDriver

    public class SSOFallbackBasicAuthenticationDriver
    extends Object
    implements AuthenticationDriver

    Basic HTTP web authentication implementation. Main purpose to use as fallback authentication with SSO filters.

    Author:
    pavel.yurkevich
    • Constructor Detail

      • SSOFallbackBasicAuthenticationDriver

        public SSOFallbackBasicAuthenticationDriver()
    • Method Detail

      • setAuthenticationService

        public void setAuthenticationService​(org.alfresco.service.cmr.security.AuthenticationService authenticationService)
      • setPersonService

        public void setPersonService​(org.alfresco.service.cmr.security.PersonService personService)
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
      • setTransactionService

        public void setTransactionService​(org.alfresco.service.transaction.TransactionService transactionService)
      • setUserAttributeName

        public void setUserAttributeName​(String userAttributeName)
      • authenticateRequest

        public boolean authenticateRequest​(javax.servlet.ServletContext context,
                                           javax.servlet.http.HttpServletRequest request,
                                           javax.servlet.http.HttpServletResponse response)
                                    throws IOException,
                                           javax.servlet.ServletException
        Description copied from interface: AuthenticationDriver
        Authenticate user based on information in http request such as Authorization header or cached session information.
        Specified by:
        authenticateRequest in interface AuthenticationDriver
        Parameters:
        context - the context
        request - http request
        response - http response
        Returns:
        true if authentication was successful
        Throws:
        IOException
        javax.servlet.ServletException
      • restartLoginChallenge

        public void restartLoginChallenge​(javax.servlet.ServletContext context,
                                          javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response)
                                   throws IOException
        Description copied from interface: AuthenticationDriver
        Send a status 401 response that will restart the log in handshake.
        Specified by:
        restartLoginChallenge in interface AuthenticationDriver
        Parameters:
        context - the context
        request - http request
        response - http response
        Throws:
        IOException