Foren

Single Sign On with Liferay and Thirdparty web application

thumbnail
Tejas Shah, geändert vor 14 Jahren.

Single Sign On with Liferay and Thirdparty web application

New Member Beiträge: 18 Beitrittsdatum: 13.07.09 Neueste Beiträge
Hi

I am trying to integrate Liferay with a third party web application using CAS for Authentication. The requirement that I have is that if the user is authenticated in the third party application using CAS, the user shouldnt have to login into liferay again. The user would be accessing the liferay application from the third party application. CAS is set up on the third party application and on Liferay. I am able to login individually into both the applications using CAS, But once I am logged in into the third party application and I access liferay I am again being asked to login.

Is there some configuration required for this?
thumbnail
Lisa Simpson, geändert vor 14 Jahren.

RE: Single Sign On with Liferay and Thirdparty web application

Liferay Legend Beiträge: 2034 Beitrittsdatum: 05.03.09 Neueste Beiträge
There is some thing in there about maintaining a session.... Make sure that's checked in your server settings.
Dmitry Lebedev, geändert vor 14 Jahren.

RE: Single Sign On with Liferay and Thirdparty web application

New Member Beiträge: 7 Beitrittsdatum: 08.12.09 Neueste Beiträge
Hello,

We have the same problem. This is our user story:

1. LifeRay is integrated with CAS.
2. There are also other applications using CAS SSO outside of LifeRay.
3. User logs in to some other application with CAS outside of LifeRay.
4. User goes to LifeRay.

Expected result: User sees personal layout, as user is already logged in.
Current result: User sees guest layout. As soon as user clicks "Log In" in the menu
the user is automatically logged in without asking password.

I gues what happens is that LifeRay checks it's own session cookie in the browser and
as such cookie doesn't exist, it considers user not logged in even if CAS cookie is already there.

How did we try to fix it with configuration:
1. We tried to apply CAS filter to all URLs, not just /c/portal/login.

This resulted in the NullPointerException already reported in LPS-3417.
Moreover this solution protects against unauthenticated access but doesn't solve this particular problem. As user is already logged in to CAS, CAS filter neither gives the login screen nor creates the LFR_SESSION_STATE cookie.

2. company.default.home.url=/c/portal/login

This indeed helps with URLs like "/portal". In this case user goes to portal and gets automatically redirected to login.
The login doesn't show anything because user is already logged in to CAS, just creates the LifeRay session. This all
happens invisibly to the user. Good.

Or not so good. What if user decides to go to some exising URL. Then the redirect to default URL doesn't happen and
user is still treated as guest.

================

Summary question: How to reliably forward all unauthenticated users to /c/portal/login ?

Thanks
Dmitry
Anonym, geändert vor 14 Jahren.

RE: Single Sign On with Liferay and Thirdparty web application

Beitrag: 1
Hi Experts,

Can we access SAP application using SSO from Liferay.

Any help would be greatly appreciated.

Thanks.
thumbnail
Amarnadha Reddy, geändert vor 14 Jahren.

RE: Single Sign On with Liferay and Thirdparty web application

Junior Member Beiträge: 27 Beitrittsdatum: 04.08.09 Neueste Beiträge
Tejas Shah:
Hi

I am trying to integrate Liferay with a third party web application using CAS for Authentication. The requirement that I have is that if the user is authenticated in the third party application using CAS, the user shouldnt have to login into liferay again. The user would be accessing the liferay application from the third party application. CAS is set up on the third party application and on Liferay. I am able to login individually into both the applications using CAS, But once I am logged in into the third party application and I access liferay I am again being asked to login.

Is there some configuration required for this?


Hi Tejas ,

If you succeed for this issue , could you send me the solution plz ...


Regards
abhishek kumar, geändert vor 8 Jahren.

RE: Single Sign On with Liferay and Thirdparty web application

Regular Member Beiträge: 138 Beitrittsdatum: 17.08.15 Neueste Beiträge
hi...
if any one got this solution and how it can be done.
please tel me the steps i have a same requirement.
abhishek kumar, geändert vor 8 Jahren.

RE: Single Sign On with Liferay and Thirdparty web application

Regular Member Beiträge: 138 Beitrittsdatum: 17.08.15 Neueste Beiträge
I got this solutions , if any having a same issue kindly refer this poc.