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 TypeClassDescriptionclassRemote 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 ExternalUserAuthenticatorprotected AuthenticationComponentstatic final longprotected RemoteUserMapperprotected ExternalUserAuthenticatorFields inherited from class org.alfresco.repo.web.scripts.servlet.BasicHttpAuthenticatorFactory
authenticationService, authorityService, listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.extensions.webscripts.Authenticatorcreate(org.springframework.extensions.webscripts.servlet.WebScriptServletRequest req, org.springframework.extensions.webscripts.servlet.WebScriptServletResponse res) longbooleanbooleanvoidsetAdminConsoleAuthenticator(ExternalUserAuthenticator adminConsoleAuthenticator) voidsetAdminConsoleScriptFamilies(List<String> adminConsoleScriptFamilies) voidsetAlwaysAllowBasicAuthForAdminConsole(boolean alwaysAllowBasicAuthForAdminConsole) voidsetAlwaysAllowBasicAuthForWebScriptsHome(boolean alwaysAllowBasicAuthForWebScriptsHome) voidsetAuthenticationComponent(AuthenticationComponent authenticationComponent) voidsetGetRemoteUserTimeoutMilliseconds(long getRemoteUserTimeoutMilliseconds) voidsetRemoteUserMapper(RemoteUserMapper remoteUserMapper) voidsetWebScriptsHomeAuthenticator(ExternalUserAuthenticator webScriptsHomeAuthenticator) 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
-
adminConsoleAuthenticator
-
webScriptsHomeAuthenticator
-
-
Constructor Details
-
RemoteUserAuthenticatorFactory
public RemoteUserAuthenticatorFactory()
-
-
Method Details
-
setRemoteUserMapper
-
setAuthenticationComponent
-
isAlwaysAllowBasicAuthForAdminConsole
public boolean isAlwaysAllowBasicAuthForAdminConsole() -
setAlwaysAllowBasicAuthForAdminConsole
public void setAlwaysAllowBasicAuthForAdminConsole(boolean alwaysAllowBasicAuthForAdminConsole) -
isAlwaysAllowBasicAuthForWebScriptsHome
public boolean isAlwaysAllowBasicAuthForWebScriptsHome() -
setAlwaysAllowBasicAuthForWebScriptsHome
public void setAlwaysAllowBasicAuthForWebScriptsHome(boolean alwaysAllowBasicAuthForWebScriptsHome) -
getAdminConsoleScriptFamilies
-
setAdminConsoleScriptFamilies
-
getGetRemoteUserTimeoutMilliseconds
public long getGetRemoteUserTimeoutMilliseconds() -
setGetRemoteUserTimeoutMilliseconds
public void setGetRemoteUserTimeoutMilliseconds(long getRemoteUserTimeoutMilliseconds) -
setAdminConsoleAuthenticator
-
setWebScriptsHomeAuthenticator
-
create
public org.springframework.extensions.webscripts.Authenticator create(org.springframework.extensions.webscripts.servlet.WebScriptServletRequest req, org.springframework.extensions.webscripts.servlet.WebScriptServletResponse res) - Specified by:
createin interfaceorg.springframework.extensions.webscripts.servlet.ServletAuthenticatorFactory- Overrides:
createin classBasicHttpAuthenticatorFactory
-