Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Bryan Kim
login.events.post doesn't work integrated with CAS
February 26, 2013 12:06 PM
Answer

Bryan Kim

Rank: New Member

Posts: 3

Join Date: January 17, 2013

Recent Posts

Hi,
We have liferay portal integrated with CAS.

We have post login hook using "login.events.post" to redirect user after login is successful. The custom action modifies the last path. For some reason it works fine without CAS enabled. But CAS enabled, the redirect doesn't happen.

Does anybody encountered similar issue?

Thanks,
Bryan
Mika Koivisto
RE: login.events.post doesn't work integrated with CAS
February 27, 2013 11:25 AM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1513

Join Date: August 7, 2006

Recent Posts

login.events.pre and login.events.post are only ran when you Login into Liferay using username and password. It is not run for any SSO using AutoLogin.
Bryan Kim
RE: login.events.post doesn't work integrated with CAS
February 27, 2013 1:40 PM
Answer

Bryan Kim

Rank: New Member

Posts: 3

Join Date: January 17, 2013

Recent Posts

Thanks for response Mika.

Then what should be the correct way to implement this scenario?

1. user logins to CAS
2. If authentication is sucessful, redirect the user to some sites (The site can be different depending on user) within liferay.