Difference between revisions of "D4Science Portal HTTPS x509 Certificate Authentication"

From Gcube Wiki
Jump to: navigation, search
Line 1: Line 1:
 
This is a custom Auto login hook that provides customised authentication for X509 certificate users.
 
This is a custom Auto login hook that provides customised authentication for X509 certificate users.
 
Set the dev environment
 
Set the dev environment
1) Unzip the file  [http://inikah2.googlecode.com/files/skeleton-hook.zip] onto your "plugin-sdk/hooks" folder.
+
# Unzip the file  [http://inikah2.googlecode.com/files/skeleton-hook.zip] onto your "plugin-sdk/hooks" folder.
2) Copy the AutoLoginCustom.java source to the src folder
+
# Copy the AutoLoginCustom.java source to the src folder
3) Add the following line to portal.properties file:
+
# Add the following line to portal.properties file:
 
auto.login.hooks=com.liferay.portal.security.auth.BasicAuthHeaderAutoLogin,com.liferay.portal.security.auth.AutoLoginCustom
 
auto.login.hooks=com.liferay.portal.security.auth.BasicAuthHeaderAutoLogin,com.liferay.portal.security.auth.AutoLoginCustom
4) Run "ant war" - The war file will be created in the plugins-sdk/dist folder.
+
# Run "ant war" - The war file will be created in the plugins-sdk/dist folder.
5) Copy the war file to Liferay_home/deploy  
+
# Copy the war file to Liferay_home/deploy  
6) Restart liferay instance
+
# Restart liferay instance
  
 
Auto Login hook is now ready to be tested and used.
 
Auto Login hook is now ready to be tested and used.

Revision as of 16:50, 30 July 2010

This is a custom Auto login hook that provides customised authentication for X509 certificate users. Set the dev environment

  1. Unzip the file [1] onto your "plugin-sdk/hooks" folder.
  2. Copy the AutoLoginCustom.java source to the src folder
  3. Add the following line to portal.properties file:

auto.login.hooks=com.liferay.portal.security.auth.BasicAuthHeaderAutoLogin,com.liferay.portal.security.auth.AutoLoginCustom

  1. Run "ant war" - The war file will be created in the plugins-sdk/dist folder.
  2. Copy the war file to Liferay_home/deploy
  3. Restart liferay instance

Auto Login hook is now ready to be tested and used.