Class RemoteUserAuthenticatorFactory
- java.lang.Object
-
- org.alfresco.repo.web.scripts.servlet.BasicHttpAuthenticatorFactory
-
- org.alfresco.repo.web.scripts.servlet.RemoteUserAuthenticatorFactory
-
- All Implemented Interfaces:
org.springframework.extensions.webscripts.servlet.ServletAuthenticatorFactory
- Direct Known Subclasses:
PublicApiAuthenticatorFactory
public class RemoteUserAuthenticatorFactory extends BasicHttpAuthenticatorFactory
Authenticator to provide Remote User based Header authentication dropping back to Basic Auth otherwise. Statelessly authenticating via a secure header now does not require a Session so can be used with request-level load balancers which was not previously possible.- Since:
- 5.1
- Author:
- Kevin Roast
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
RemoteUserAuthenticatorFactory.RemoteUserAuthenticator
Remote User authenticator - adds header authentication onto Basic Auth.-
Nested classes/interfaces inherited from class org.alfresco.repo.web.scripts.servlet.BasicHttpAuthenticatorFactory
BasicHttpAuthenticatorFactory.BasicHttpAuthenticator
-
-
Field Summary
Fields Modifier and Type Field Description protected org.alfresco.repo.security.authentication.AuthenticationComponent
authenticationComponent
static long
GET_REMOTE_USER_TIMEOUT_MILLISECONDS_DEFAULT
protected org.alfresco.repo.security.authentication.external.RemoteUserMapper
remoteUserMapper
-
Fields inherited from class org.alfresco.repo.web.scripts.servlet.BasicHttpAuthenticatorFactory
authenticationService, authorityService, listener
-
-
Constructor Summary
Constructors Constructor Description RemoteUserAuthenticatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.extensions.webscripts.Authenticator
create(org.springframework.extensions.webscripts.servlet.WebScriptServletRequest req, org.springframework.extensions.webscripts.servlet.WebScriptServletResponse res)
List<String>
getAdminConsoleScriptFamilies()
long
getGetRemoteUserTimeoutMilliseconds()
boolean
isAlwaysAllowBasicAuthForAdminConsole()
void
setAdminConsoleScriptFamilies(List<String> adminConsoleScriptFamilies)
void
setAlwaysAllowBasicAuthForAdminConsole(boolean alwaysAllowBasicAuthForAdminConsole)
void
setAuthenticationComponent(org.alfresco.repo.security.authentication.AuthenticationComponent authenticationComponent)
void
setGetRemoteUserTimeoutMilliseconds(long getRemoteUserTimeoutMilliseconds)
void
setRemoteUserMapper(org.alfresco.repo.security.authentication.external.RemoteUserMapper remoteUserMapper)
-
Methods inherited from class org.alfresco.repo.web.scripts.servlet.BasicHttpAuthenticatorFactory
getAuthorityService, setAuthenticationListener, setAuthenticationService, setAuthorityService
-
-
-
-
Field Detail
-
GET_REMOTE_USER_TIMEOUT_MILLISECONDS_DEFAULT
public static final long GET_REMOTE_USER_TIMEOUT_MILLISECONDS_DEFAULT
- See Also:
- Constant Field Values
-
remoteUserMapper
protected org.alfresco.repo.security.authentication.external.RemoteUserMapper remoteUserMapper
-
authenticationComponent
protected org.alfresco.repo.security.authentication.AuthenticationComponent authenticationComponent
-
-
Method Detail
-
setRemoteUserMapper
public void setRemoteUserMapper(org.alfresco.repo.security.authentication.external.RemoteUserMapper remoteUserMapper)
-
setAuthenticationComponent
public void setAuthenticationComponent(org.alfresco.repo.security.authentication.AuthenticationComponent authenticationComponent)
-
isAlwaysAllowBasicAuthForAdminConsole
public boolean isAlwaysAllowBasicAuthForAdminConsole()
-
setAlwaysAllowBasicAuthForAdminConsole
public void setAlwaysAllowBasicAuthForAdminConsole(boolean alwaysAllowBasicAuthForAdminConsole)
-
setAdminConsoleScriptFamilies
public void setAdminConsoleScriptFamilies(List<String> adminConsoleScriptFamilies)
-
getGetRemoteUserTimeoutMilliseconds
public long getGetRemoteUserTimeoutMilliseconds()
-
setGetRemoteUserTimeoutMilliseconds
public void setGetRemoteUserTimeoutMilliseconds(long getRemoteUserTimeoutMilliseconds)
-
create
public org.springframework.extensions.webscripts.Authenticator create(org.springframework.extensions.webscripts.servlet.WebScriptServletRequest req, org.springframework.extensions.webscripts.servlet.WebScriptServletResponse res)
- Specified by:
create
in interfaceorg.springframework.extensions.webscripts.servlet.ServletAuthenticatorFactory
- Overrides:
create
in classBasicHttpAuthenticatorFactory
-
-