public class SSOFallbackBasicAuthenticationDriver extends Object implements AuthenticationDriver
Basic HTTP web authentication implementation. Main purpose to use as fallback authentication with SSO filters.
AUTHENTICATION_USER
Constructor and Description |
---|
SSOFallbackBasicAuthenticationDriver() |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticateRequest(ServletContext context,
HttpServletRequest request,
HttpServletResponse response)
Authenticate user based on information in http request such as Authorization header or cached session
information.
|
void |
restartLoginChallenge(ServletContext context,
HttpServletRequest request,
HttpServletResponse response)
Send a status 401 response that will restart the log in handshake.
|
void |
setAuthenticationService(AuthenticationService authenticationService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPersonService(PersonService personService) |
void |
setTransactionService(TransactionService transactionService) |
void |
setUserAttributeName(String userAttributeName) |
public SSOFallbackBasicAuthenticationDriver()
public void setAuthenticationService(AuthenticationService authenticationService)
public void setPersonService(PersonService personService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setTransactionService(TransactionService transactionService)
public void setUserAttributeName(String userAttributeName)
public boolean authenticateRequest(ServletContext context, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
AuthenticationDriver
authenticateRequest
in interface AuthenticationDriver
context
- the contextrequest
- http requestresponse
- http responsetrue
if authentication was successfulIOException
ServletException
public void restartLoginChallenge(ServletContext context, HttpServletRequest request, HttpServletResponse response) throws IOException
AuthenticationDriver
restartLoginChallenge
in interface AuthenticationDriver
context
- the contextrequest
- http requestresponse
- http responseIOException
Copyright © 2005–2017 Alfresco Software. All rights reserved.