Integrating Liferay(Websynergy) with OpenSSO on Glassfish V3

Liferay is an open source portal and Sun is using Liferays codebase and contributing Sun features.  The project name for the same is Websynergy. OpenSSO is an open source  project for single sign on.  This document describes how to integrate Liferay(Websynergy) with OpenSSO on Glassfish V3 TP2.

1.  Download OpenSSO from https://opensso.dev.java.net  . You can  use stable Build 4.
2.  Download Glassfish V3 from https://glassfish.dev.java.net
3.  Iam assuming  OpenSSO and Liferay on the same machine for this example but they can be on two different machines.
4. Install ANT 1.7, JDK 1.6 and SVN 1.4.5. Make sure all are in PATH.
5. Checkout Liferay latest source from sourceforge.net (svn co https://lportal.svn.sourceforge.net/svnroot/lportal/trunk portal). Latest version is "5.1" if checked out from trunk.
6. Go to Liferay source code directory and modify appserver.properties. Specify the glassfish version as v3 and glassfish install location.
7. From Liferay Source Code Directory  run ant -f build.xml all.
8. Once, build is successful, liferay is up and running on Glassfish V3 after few 5 minutes of compilation time. Access http://host:port to verify.

Note : On liferay site we have pre-built image of only GFv2.1 but not GFv3. Thats why we manually did a build for GFv3 as above

See below steps now for OpenSSO :

1. Unzip opensso.zip . Go to deployable-war directory and copy opensso.war to glassfish hotdeploy directory.
2. Glassfish autodeploy scanner will pick the war and deploy it.
3. Access http://host:port/opensso. Web based install screen of OpenSSO will be seen. Select default configuration and go through the steps which are very easy.
4. Login to opensso as amadmin. Create the user Joe Bloggs by giving "ID=joebloggs" and "Email=test@liferay.com"
(Note : First create the user, then edit to set email).
5. Logout and login to OpenSSO as joebloggs. It should work fine.
6. Now  login to Liferay as test@liferay.com (Joe Bloggs) . Add application "Enterprise Admin" from desktop.
7. In the "Enterprise Admin" portlet,  Go to EnterpriseAdmin > Organizations > Settings > Authentication > OpenSSO. Change the below values for your opensso host and portalhost. In this example it is the same host.

# Login URL=http://openssohost:port/opensso/UI/Login?goto=http://portalhost:port/c/portal/login
# Logout URL=http://openssohost:port/opensso/UI/Logout?goto=http://portalhost:port/portal/
# Service URL=http://openssohost:port/opensso

Check "Enable" checkbox and Save.

8. Now once you click on Logout. It takes you back to opensso login page and after successful authentication it will come bring the liferay desktop again. Also if you access http://host:port for accessing liferay, opensso authentication screen should come.

Enjoy, your opensso integration with liferay is rocking !!


Comments:

Hi, integration worked! With the latest version of the portal with the Glassfish! But I need it allows "Anonymous" to be able to surf the free area of the portal.
I know that this configuration is not made in Opensso. The problem is that for every request that comes in the portal and there is not exists a user logged in the portal redirects to the Opensso!
I want allows "Anonymous" for public area.

Posted by Jonathan Muniz on September 21, 2008 at 11:21 PM PDT #

Hi, Managed to integrate opensso with portal. The problem is that I cannot access the login page as it takes me back to the main page without displaying opensso login. Is there a configuration file I can look to change the websynergy sso parameters? or is this stored in mysql database? Also as per Jonathans request above I would also like to find out how to do anonymous desktop authentication on websynergy.

Posted by Paul Willies on November 11, 2008 at 09:11 PM PST #

Thank you for the article. I have tried to enable SSO using opensso, with opensso deployed on another host machine, It does not redirect to the SSO login page or logout page. Is there anything I have to do differently if I have deployed opensso on a different machine to websynergy?

Posted by Paul on November 20, 2008 at 03:26 PM PST #

Hi Ajit,

I have the same issue like Jonathan Muniz.
Is there any solution for that? using Webspace 10 with opensso.

Thanks
Gerhard

Posted by Gerhard on March 12, 2009 at 10:34 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Ajit Kamble

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today