Class SSOFallbackBasicAuthenticationDriver

  • All Implemented Interfaces:
    AuthenticationDriver

    public class SSOFallbackBasicAuthenticationDriver
    extends java.lang.Object
    implements AuthenticationDriver

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

    Author:
    pavel.yurkevich
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean authenticateRequest​(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Authenticate user based on information in http request such as Authorization header or cached session information.
      void restartLoginChallenge​(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Send a status 401 response that will restart the log in handshake.
      void setAuthenticationService​(org.alfresco.service.cmr.security.AuthenticationService authenticationService)  
      void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)  
      void setPersonService​(org.alfresco.service.cmr.security.PersonService personService)  
      void setTransactionService​(org.alfresco.service.transaction.TransactionService transactionService)  
      void setUserAttributeName​(java.lang.String userAttributeName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.lang.String userAttributeName)
      • authenticateRequest

        public boolean authenticateRequest​(javax.servlet.ServletContext context,
                                           javax.servlet.http.HttpServletRequest request,
                                           javax.servlet.http.HttpServletResponse response)
                                    throws java.io.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:
        java.io.IOException
        javax.servlet.ServletException
      • restartLoginChallenge

        public void restartLoginChallenge​(javax.servlet.ServletContext context,
                                          javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response)
                                   throws java.io.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:
        java.io.IOException