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(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(org.alfresco.service.cmr.security.AuthenticationService authenticationService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPersonService(org.alfresco.service.cmr.security.PersonService personService) |
void |
setTransactionService(org.alfresco.service.transaction.TransactionService transactionService) |
void |
setUserAttributeName(String userAttributeName) |
public SSOFallbackBasicAuthenticationDriver()
public void setAuthenticationService(org.alfresco.service.cmr.security.AuthenticationService authenticationService)
public void setPersonService(org.alfresco.service.cmr.security.PersonService personService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setTransactionService(org.alfresco.service.transaction.TransactionService transactionService)
public void setUserAttributeName(String userAttributeName)
public boolean authenticateRequest(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
AuthenticationDriver
authenticateRequest
in interface AuthenticationDriver
context
- the contextrequest
- http requestresponse
- http responsetrue
if authentication was successfulIOException
javax.servlet.ServletException
public void restartLoginChallenge(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
AuthenticationDriver
restartLoginChallenge
in interface AuthenticationDriver
context
- the contextrequest
- http requestresponse
- http responseIOException
Copyright © 2005–2018 Alfresco Software. All rights reserved.