public class SSOFallbackBasicAuthenticationDriver extends Object implements AuthenticationDriver
Basic HTTP web authentication implementation. Main purpose to use as fallback authentication with SSO filters.
| Modifier and Type | Field and Description |
|---|---|
static String |
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(AuthenticationService authenticationService) |
void |
setNodeService(NodeService nodeService) |
void |
setPersonService(PersonService personService) |
void |
setTransactionService(TransactionService transactionService) |
void |
setUserAttributeName(String userAttributeName) |
public static final String AUTHENTICATION_USER
public SSOFallbackBasicAuthenticationDriver()
public void setAuthenticationService(AuthenticationService authenticationService)
public void setPersonService(PersonService personService)
public void setNodeService(NodeService nodeService)
public void setTransactionService(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
AuthenticationDriverauthenticateRequest in interface AuthenticationDrivercontext - the contextrequest - http requestresponse - http responsetrue if authentication was successfulIOExceptionjavax.servlet.ServletExceptionpublic void restartLoginChallenge(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
AuthenticationDriverrestartLoginChallenge in interface AuthenticationDrivercontext - the contextrequest - http requestresponse - http responseIOExceptionCopyright © 2005–2014 Alfresco Software. All rights reserved.