Fórum

Single Sign On (SSO)

thumbnail
Subhash Pavuskar, modificado 12 Anos atrás.

Single Sign On (SSO)

Regular Member Postagens: 234 Data de Entrada: 13/03/12 Postagens Recentes
Can anyone pls tell me What is SSO and how i can implement in Liferay? pls provide me the link or tutorial.
thumbnail
Subhash Pavuskar, modificado 12 Anos atrás.

RE: Single Sign On (SSO)

Regular Member Postagens: 234 Data de Entrada: 13/03/12 Postagens Recentes
Hi Tejas,

Thanks For your Valuable information.
thumbnail
Subhash Pavuskar, modificado 12 Anos atrás.

RE: Single Sign On (SSO)

Regular Member Postagens: 234 Data de Entrada: 13/03/12 Postagens Recentes
I Understood what is SSO and its Advantage as a theoretical , Now I want to Implement In Liferay 6.1 can anyone pls tell me the procedure to implement in my portal?
thumbnail
Tejas Kanani, modificado 12 Anos atrás.

RE: Single Sign On (SSO)

Liferay Master Postagens: 654 Data de Entrada: 06/01/09 Postagens Recentes
In previous post I've given some links which will guide you how to integrate CAS & OpenSSO with Liferay.

And also find below reference for CAS with Liferay 6.
http://www.liferay.com/community/wiki/-/wiki/Main/CAS+Liferay+6+Integration
thumbnail
Tejas Kanani, modificado 12 Anos atrás.

RE: Single Sign On (SSO)

Liferay Master Postagens: 654 Data de Entrada: 06/01/09 Postagens Recentes
Check this link as well
thumbnail
Subhash Pavuskar, modificado 12 Anos atrás.

RE: Single Sign On (SSO)

Regular Member Postagens: 234 Data de Entrada: 13/03/12 Postagens Recentes
Thanks Tejas I am trying on your 2nd link I hope it ll work. If i Get any difficulty shall i ping you?
thumbnail
Subhash Pavuskar, modificado 12 Anos atrás.

RE: Single Sign On (SSO)

Regular Member Postagens: 234 Data de Entrada: 13/03/12 Postagens Recentes
@Tejas
I followed the steps which you had given i.e http://www.unicon.net/blog/apetro/casify_liferay_6_ee i am stucked in middle i.e after configuring Control Panel Setting according to the Procedure when i logged out instead of https://localhost:8080 it is redirecting to " https://localhost:8443/cas/login?service=http%3A%2F%2Flocalhost%3A8080%2Fc%2Fportal%2Flogin%3Fp_l_id%3D10169" and in that page showing the Message that "Unable to Connect" can you pls tell me the solution i am unable to login also.
thumbnail
Tejas Kanani, modificado 12 Anos atrás.

RE: Single Sign On (SSO)

Liferay Master Postagens: 654 Data de Entrada: 06/01/09 Postagens Recentes
Check if you have followed all the steps and configuration properly ?
I've not personally tried those but it should work.
thumbnail
Subhash Pavuskar, modificado 12 Anos atrás.

RE: Single Sign On (SSO)

Regular Member Postagens: 234 Data de Entrada: 13/03/12 Postagens Recentes
@Tejas:
Hi, yeah i checked and i tried in one more system but it showing same problem what i faced before.
thumbnail
Tejas Kanani, modificado 12 Anos atrás.

RE: Single Sign On (SSO)

Liferay Master Postagens: 654 Data de Entrada: 06/01/09 Postagens Recentes
Also check other links provided in previous post, I've not tried any of them personally.
http://www.liferay.com/community/wiki/-/wiki/Main/CAS+Liferay+6+Integration

And even for authentication it is recommended to use LDAP or AD or any other system. So may need that as well.
Neha Verma, modificado 12 Anos atrás.

RE: Single Sign On (SSO)

New Member Postagens: 12 Data de Entrada: 13/03/12 Postagens Recentes
Hi Tejas,

I have configured CAS with Liferay 6.1 EE. Now i m able to login into liferay through CAS and after logout its redirecting me to CAS logout page also.

Now I wanna to configure gmail in liferay through CAS... so that once i will click on gmail url, it will redirect to me to the gmail without any authentication.

Could you please help me, how can I configure gmail.

Thanks,
Neha.
thumbnail
Hitoshi Ozawa, modificado 12 Anos atrás.

RE: Single Sign On (SSO)

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Neha, would you create a new thread because your question is not concerned with the original question of this thread.
thumbnail
Subhash Pavuskar, modificado 12 Anos atrás.

RE: Single Sign On (SSO)

Regular Member Postagens: 234 Data de Entrada: 13/03/12 Postagens Recentes
Clear Steps Need to configure for SSO using CAS... I hope this may help anyone in future.


Here are some links with snapshots, which is same as below given 35 steps:

(a)- http://www.unicon.net/blog/apetro/casify_liferay_6_ee
(b)- http://content.liferay.com/4.3/doc/installation/liferay_4_installation_guide/multipage/ch05s04.html


Steps:

1- Install CAS

I downloaded the CAS server distribution. All the (recent) downloads are available here : http://www.jasig.org/cas/download

2- Exploding that tar.gz, I grabbed the cas-server-3.4.5/modules/cas-server-webapp-3.4.5.war,

3- Rename the file to cas-web.war.

4- Copy the war file and paste it to the Tomcat webapps directory.

5- I didn't stop Tomcat before, so with Tomcat still running, I hit http://localhost:8080/cas-web/ in a browser and was helpfully redirected to http://localhost:8080/ cas-web/login . Default demo CAS webapp authenticates where username equals password, so I tried logging in as "test@liferay.com" with "test@liferay.com"

6- CAS helpfully told me I was logged in, though of course not logged in to anything useful, since I didn't try to log in to any particular application.


Configured Liferay to use CAS for authentication


7- Create an account in liferay with test@liferay.com and password test@liferay.com, which is same as CAS account.

8- To download the Yale CAS Client 2.0.11 go to http://downloads.jasig.org/cas-clients/

9- Create a folder and extract the cas.client zip file into this folder.

10- Open the folder and navigate to the casclient jar file (cas-client-2.0.11\java\lib).

11- Copy the file.

12- Go to the lib file in Tomcat (webapps\ROOT\WEB_INF\lib) and paste the casclient jar file to replace the existing one.

13- In the command prompt go to the ROOT directory. ( /liferay-portal-6.1.10-ee-ga1/tomcat-7.0.25/webapps/ROOT )

14- Enter the following:

keytool -genkey -alias tomcat -keypass changeit -keyalg RSA

15- Enter changeit for the password.

16- Answer the list of questions. Note that the first and last name must be the host name of your server and cannot be an IP address. This is very important because an IP address will fail client hostname verification even if it is correct.

Enter keystore password: changeit
What is your first and last name?
[Unknown]: localhost
What is the name of your organizational unit?
[Unknown]:
What is the name of your organization?
[Unknown]:
What is the name of your City or Locality?
[Unknown]:
What is the name of your State or Province?
[Unknown]:
What is the two-letter country code for this unit?
[Unknown]:
Is CN=localhost, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct?
[no]: yes


17- Enter the following command to export the cert you generated from your personal keystore:

keytool -export -alias tomcat -keypass changeit -file server.cert

18- Enter changeit for the password.

19- Import the cert into Java's keystore with this command:

keytool -import -alias tomcat -file %FILE_NAME% -keypass changeit -keystore %JAVA_HOME%/jre/lib/security/cacerts

( Make sure in place of %FILE_NAME% type server.cert )

20- Enter changeit for the password.

21- Enter yes.

22- To set up Liferay Portal, navigate to the classes file in Tomcat (webapps\ROOT\WEB_INF\classes).

23- Create portal-ext.properties if it does not exist yet, somewhere in the server classpath:

24- Open portal-ext.properties and enter:

cas.auth.enabled=true
cas.import.from.ldap=true
cas.login.url=http://localhost:8080/cas-web/login
cas.logout.url=http://localhost:8080/cas-web/logout
cas.server.url=http://localhost:8080/cas-web
cas.validate.url=http://localhost:8080/cas-web/proxyValidate

25- Save.

26- Start Tomcat and go to Liferay Portal --> Login to Liferay through the username and password login box at left -- if users will exclusively login with CAS. ( Rather then clicking the Sign In link at the upper right. )

27- Go to Control Pannel -> Portal Settings -> Authentication -> CAS

(a)- Check on Enabled
(b)- Make sure type all URL same as mentioned in portal-ext.properties file

28- Save it.

29- Then Sign out from Liferay.

30- Again Sign In into Liferay by clicking the Sign In link at the upper right.

31- If everything is set up correctly you will be redirected to the CAS server’s login screen.

32- logging in as "test@liferay.com" with "test@liferay.com" as password.

33- CAS sends you back to Liferay with a valid Service Ticket, Liferay validates the Service ticket, and you are logged in Liferay as that test@liferay.com test user.

34- Then Click on Sign Out

35- Since Liferay is now configured to use CAS, it will send you to the CAS logout URL.
thumbnail
mohammad azaruddin, modificado 11 Anos atrás.

RE: Single Sign On (SSO)

Expert Postagens: 492 Data de Entrada: 17/09/12 Postagens Recentes
Hi Subhash Pavuskar

That is very kind of youemoticon
emoticonemoticon
Jason Gordon, modificado 6 Anos atrás.

RE: Single Sign On (SSO)

New Member Mensagem: 1 Data de Entrada: 05/09/17 Postagens Recentes
There are a number of ways to implement SSO in liferay. Here is a blog that talks about challenges and approaches