Liferay 6.2-ce-ga5

com.liferay.portal.security.auth
Class BasicAuthHeaderAutoLogin

java.lang.Object
  extended by com.liferay.portal.security.auth.BaseAutoLogin
      extended by com.liferay.portal.security.auth.BasicAuthHeaderAutoLogin
All Implemented Interfaces:
AuthVerifier, AutoLogin

public class BasicAuthHeaderAutoLogin
extends BaseAutoLogin
implements 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.


Field Summary
 
Fields inherited from interface com.liferay.portal.security.auth.AutoLogin
AUTO_LOGIN_REDIRECT, AUTO_LOGIN_REDIRECT_AND_CONTINUE
 
Constructor Summary
BasicAuthHeaderAutoLogin()
           
 
Method Summary
protected  String[] doLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 String getAuthType()
           
 AuthVerifierResult verify(AccessControlContext accessControlContext, Properties properties)
           
 
Methods inherited from class com.liferay.portal.security.auth.BaseAutoLogin
doHandleException, handleException, login
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAuthHeaderAutoLogin

public BasicAuthHeaderAutoLogin()
Method Detail

getAuthType

public String getAuthType()
Specified by:
getAuthType in interface AuthVerifier

verify

public AuthVerifierResult verify(AccessControlContext accessControlContext,
                                 Properties properties)
                          throws AuthException
Specified by:
verify in interface AuthVerifier
Throws:
AuthException

doLogin

protected String[] doLogin(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws Exception
Specified by:
doLogin in class BaseAutoLogin
Throws:
Exception

Liferay 6.2-ce-ga5