Package org.alfresco.repo.webdav.auth
Class SSOFallbackBasicAuthenticationDriver
- java.lang.Object
-
- org.alfresco.repo.webdav.auth.SSOFallbackBasicAuthenticationDriver
-
- All Implemented Interfaces:
AuthenticationDriver
public class SSOFallbackBasicAuthenticationDriver extends Object implements 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 Constructor Description SSOFallbackBasicAuthenticationDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticateRequest(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(org.alfresco.service.cmr.security.AuthenticationService authenticationService)voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)voidsetPersonService(org.alfresco.service.cmr.security.PersonService personService)voidsetTransactionService(org.alfresco.service.transaction.TransactionService transactionService)voidsetUserAttributeName(String userAttributeName)
-
-
-
Method Detail
-
setAuthenticationService
public void setAuthenticationService(org.alfresco.service.cmr.security.AuthenticationService authenticationService)
-
setPersonService
public void setPersonService(org.alfresco.service.cmr.security.PersonService personService)
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
setTransactionService
public void setTransactionService(org.alfresco.service.transaction.TransactionService transactionService)
-
setUserAttributeName
public void setUserAttributeName(String userAttributeName)
-
authenticateRequest
public boolean authenticateRequest(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletExceptionDescription 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 IOExceptionDescription 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
-
-