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
-
Field Summary
Fields inherited from class org.alfresco.repo.web.scripts.servlet.BasicHttpAuthenticatorFactory.BasicHttpAuthenticator
authorization, listener, servletReq, servletRes, ticket
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteUserAuthenticator
(org.springframework.extensions.webscripts.servlet.WebScriptServletRequest req, org.springframework.extensions.webscripts.servlet.WebScriptServletResponse res, AuthenticationListener listener) -
Method Summary
Modifier and TypeMethodDescriptionboolean
authenticate
(org.springframework.extensions.webscripts.Description.RequiredAuthentication required, boolean isGuest) protected String
Retrieve the remote user from servlet request header when using a secure connection.protected String
getRemoteUserWithTimeout
(boolean useTimeout) protected boolean
isAdminConsoleWebScript
(org.springframework.extensions.webscripts.WebScript webScript) Methods inherited from class org.alfresco.repo.web.scripts.servlet.BasicHttpAuthenticatorFactory.BasicHttpAuthenticator
emptyCredentials, isBasicAuthHeaderPresentForAdmin
-
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 interfaceorg.springframework.extensions.webscripts.Authenticator
- Overrides:
authenticate
in classBasicHttpAuthenticatorFactory.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
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
-