Package org.alfresco.repo.webdav.auth
Class SSOFallbackBasicAuthenticationDriver
java.lang.Object
org.alfresco.repo.webdav.auth.SSOFallbackBasicAuthenticationDriver
- All Implemented Interfaces:
AuthenticationDriver
Basic HTTP web authentication implementation. Main purpose to use as fallback authentication with SSO filters.
- Author:
- pavel.yurkevich
-
Field Summary
Fields inherited from interface org.alfresco.repo.webdav.auth.AuthenticationDriver
AUTHENTICATION_USER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticateRequest(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Authenticate user based on information in http request such as Authorization header or cached session information.voidrestartLoginChallenge(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Send a status 401 response that will restart the log in handshake.voidsetAuthenticationService(AuthenticationService authenticationService) voidsetNodeService(NodeService nodeService) voidsetPersonService(PersonService personService) voidsetTransactionService(TransactionService transactionService) voidsetUserAttributeName(String userAttributeName)
-
Constructor Details
-
SSOFallbackBasicAuthenticationDriver
public SSOFallbackBasicAuthenticationDriver()
-
-
Method Details
-
setAuthenticationService
-
setPersonService
-
setNodeService
-
setTransactionService
-
setUserAttributeName
-
authenticateRequest
public boolean authenticateRequest(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException Description copied from interface:AuthenticationDriverAuthenticate user based on information in http request such as Authorization header or cached session information.- Specified by:
authenticateRequestin interfaceAuthenticationDriver- Parameters:
context- the contextrequest- http requestresponse- http response- Returns:
trueif authentication was successful- Throws:
IOExceptionjavax.servlet.ServletException
-
restartLoginChallenge
public void restartLoginChallenge(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException Description copied from interface:AuthenticationDriverSend a status 401 response that will restart the log in handshake.- Specified by:
restartLoginChallengein interfaceAuthenticationDriver- Parameters:
context- the contextrequest- http requestresponse- http response- Throws:
IOException
-