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
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 ClassesModifier and TypeClassDescriptionclass
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
FieldsModifier and TypeFieldDescriptionprotected AuthenticationComponent
static final long
protected RemoteUserMapper
Fields inherited from class org.alfresco.repo.web.scripts.servlet.BasicHttpAuthenticatorFactory
authenticationService, authorityService, listener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.extensions.webscripts.Authenticator
create
(org.springframework.extensions.webscripts.servlet.WebScriptServletRequest req, org.springframework.extensions.webscripts.servlet.WebScriptServletResponse res) long
boolean
void
setAdminConsoleScriptFamilies
(List<String> adminConsoleScriptFamilies) void
setAlwaysAllowBasicAuthForAdminConsole
(boolean alwaysAllowBasicAuthForAdminConsole) void
setAuthenticationComponent
(AuthenticationComponent authenticationComponent) void
setGetRemoteUserTimeoutMilliseconds
(long getRemoteUserTimeoutMilliseconds) void
setRemoteUserMapper
(RemoteUserMapper remoteUserMapper) Methods inherited from class org.alfresco.repo.web.scripts.servlet.BasicHttpAuthenticatorFactory
getAuthorityService, setAuthenticationListener, setAuthenticationService, setAuthorityService
-
Field Details
-
GET_REMOTE_USER_TIMEOUT_MILLISECONDS_DEFAULT
public static final long GET_REMOTE_USER_TIMEOUT_MILLISECONDS_DEFAULT- See Also:
-
remoteUserMapper
-
authenticationComponent
-
-
Constructor Details
-
RemoteUserAuthenticatorFactory
public RemoteUserAuthenticatorFactory()
-
-
Method Details
-
setRemoteUserMapper
-
setAuthenticationComponent
-
isAlwaysAllowBasicAuthForAdminConsole
public boolean isAlwaysAllowBasicAuthForAdminConsole() -
setAlwaysAllowBasicAuthForAdminConsole
public void setAlwaysAllowBasicAuthForAdminConsole(boolean alwaysAllowBasicAuthForAdminConsole) -
getAdminConsoleScriptFamilies
-
setAdminConsoleScriptFamilies
-
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
-