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 boolean
authenticateRequest(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.void
restartLoginChallenge(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.void
setAuthenticationService(AuthenticationService authenticationService)
void
setNodeService(NodeService nodeService)
void
setPersonService(PersonService personService)
void
setTransactionService(TransactionService transactionService)
void
setUserAttributeName(String userAttributeName)
-
-
-
Method Detail
-
setAuthenticationService
public void setAuthenticationService(AuthenticationService authenticationService)
-
setPersonService
public void setPersonService(PersonService personService)
-
setNodeService
public void setNodeService(NodeService nodeService)
-
setTransactionService
public void setTransactionService(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.ServletException
Description copied from interface:AuthenticationDriver
Authenticate user based on information in http request such as Authorization header or cached session information.- Specified by:
authenticateRequest
in interfaceAuthenticationDriver
- Parameters:
context
- the contextrequest
- http requestresponse
- http response- Returns:
true
if authentication was successful- Throws:
IOException
javax.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:AuthenticationDriver
Send a status 401 response that will restart the log in handshake.- Specified by:
restartLoginChallenge
in interfaceAuthenticationDriver
- Parameters:
context
- the contextrequest
- http requestresponse
- http response- Throws:
IOException
-
-