Class RemoteUserAuthenticatorFactory.RemoteUserAuthenticator

java.lang.Object
org.alfresco.repo.web.scripts.servlet.BasicHttpAuthenticatorFactory.BasicHttpAuthenticator
org.alfresco.repo.web.scripts.servlet.RemoteUserAuthenticatorFactory.RemoteUserAuthenticator
All Implemented Interfaces:
org.springframework.extensions.webscripts.Authenticator
Direct Known Subclasses:
PublicApiAuthenticatorFactory.PublicApiAuthenticator
Enclosing class:
RemoteUserAuthenticatorFactory

public class RemoteUserAuthenticatorFactory.RemoteUserAuthenticator extends BasicHttpAuthenticatorFactory.BasicHttpAuthenticator
Remote User authenticator - adds header authentication onto Basic Auth. Stateless does not require Session.
Author:
Kevin Roast
  • Constructor Details

    • RemoteUserAuthenticator

      public RemoteUserAuthenticator(org.springframework.extensions.webscripts.servlet.WebScriptServletRequest req, org.springframework.extensions.webscripts.servlet.WebScriptServletResponse res, AuthenticationListener listener)
  • Method Details

    • authenticate

      public boolean authenticate(org.springframework.extensions.webscripts.Description.RequiredAuthentication required, boolean isGuest)
      Specified by:
      authenticate in interface org.springframework.extensions.webscripts.Authenticator
      Overrides:
      authenticate in class BasicHttpAuthenticatorFactory.BasicHttpAuthenticator
    • isAdminConsoleWebScript

      protected boolean isAdminConsoleWebScript(org.springframework.extensions.webscripts.WebScript webScript)
    • getRemoteUserWithTimeout

      protected String getRemoteUserWithTimeout(boolean useTimeout) throws org.alfresco.repo.web.scripts.servlet.AuthenticationTimeoutException
      Throws:
      org.alfresco.repo.web.scripts.servlet.AuthenticationTimeoutException
    • getRemoteUser

      protected String getRemoteUser()
      Retrieve the remote user from servlet request header when using a secure connection. The RemoteUserMapper bean must be active and configured.
      Returns:
      remote user ID or null if not active or found