public class BasicAuthHeaderAutoLogin
extends com.liferay.portal.security.auth.BaseAutoLogin
implements com.liferay.portal.security.auth.AuthVerifier
1. Install Firefox. These instructions assume you have Firefox 2.0.0.1. Previous version of Firefox have been tested and are known to work.
2. Install the Modify Headers 0.5.4 Add-on. Tools > Add Ons. Click the get extensions link at the bottom of the window. Type in "Modify Headers" in the Search box. Find Modify Headers in the results page and click on it. Then click the install now link.
3. Configure Modify Headers to add a basic authentication header. Tools > Modify Headers. In the Modify Headers window select the Add drop down. Type in "Authorization" in the next box. Type in "Basic bGlmZXJheS5jb20uMTp0ZXN0" in the next box. Click the Add button.
4. Make sure your header modification is enabled and point your browser to the Liferay portal.
5. You should now be authenticated as Joe Bloggs.
| Constructor and Description |
|---|
BasicAuthHeaderAutoLogin() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String[] |
doLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
java.lang.String |
getAuthType() |
com.liferay.portal.security.auth.AuthVerifierResult |
verify(com.liferay.portal.security.auth.AccessControlContext accessControlContext,
java.util.Properties properties) |
public java.lang.String getAuthType()
getAuthType in interface com.liferay.portal.security.auth.AuthVerifierpublic com.liferay.portal.security.auth.AuthVerifierResult verify(com.liferay.portal.security.auth.AccessControlContext accessControlContext,
java.util.Properties properties)
throws com.liferay.portal.security.auth.AuthException
verify in interface com.liferay.portal.security.auth.AuthVerifiercom.liferay.portal.security.auth.AuthExceptionprotected java.lang.String[] doLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
doLogin in class com.liferay.portal.security.auth.BaseAutoLoginjava.lang.Exception