Class SSOFallbackBasicAuthenticationDriver

java.lang.Object
org.alfresco.repo.webdav.auth.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 Details

    • SSOFallbackBasicAuthenticationDriver

      public SSOFallbackBasicAuthenticationDriver()
  • Method Details

    • setAuthenticationService

      public void setAuthenticationService(AuthenticationService authenticationService)
    • setPersonService

      public void setPersonService(PersonService personService)
    • setNodeService

      public void setNodeService(NodeService nodeService)
    • setTransactionService

      public void setTransactionService(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