Foren

OpenId link

Ozeri Nir, geändert vor 12 Jahren.

OpenId link

New Member Beiträge: 11 Beitrittsdatum: 16.09.10 Neueste Beiträge
Hi All,

I have a big issue with a scenario I am implementing, any help/pointers would be highly appreciated.

The scenario is as follows:
1. User login to system 1 which is an OpenId provider for liferay portal
2. User, while being logged into system 1, is activating a process/workflow which creates a community with a few members on liferay portal (system 2) using SOAP API
3. User is being presented with a link to manage the new created community
4. User press the link and a new browser tab is being opened and the user is being logged into liferay portal (landing on the new community default page)
5. User manage the community

Point 1 is working ok
Point 2 is working ok
Point 3 is working ok, the link is being extracted from the login page and it looks something like this "http://[host name]:8080/web/[community name]/default?p_auth=yX0ksZ63&p_p_auth=9TppjFEl&p_p_id=58&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&_58_struts_action=%2Flogin%2Fopen_id&_58_openId=http%3A%2F%2Fnir-one-laptop%2Fsso%2Fauth%2Fid&saveLastPath=0"
Point 4 is where stuff becoming a little bit messy. the user is presented with the above link and it works fine for the first time! after the first time the link is not working anymore. I have tried a few formats of the link (even changed the link after it is being used once and removed all the authentication keys and left it just with "http://[host name]:8080/web/[community name]/default") but no luck.

My questions are
1. Shouldn't the openId recognize that i was logged in to system 1 and allow me access to system 2 (portal) without the need to use the login link?
2. Is there a way to to get a login link from the portal without the need to extract it from the login page?
3. Is the scenario possible at all?
4. What is the format of URL that i can use which will redirect to the community page as a logged in user?

Any pointers, help, advice or even just a kind word would be great!

Thanks

Nir
thumbnail
Maarten van Heiningen, geändert vor 12 Jahren.

RE: OpenId link

Regular Member Beiträge: 174 Beitrittsdatum: 05.02.09 Neueste Beiträge
Hi Ozeri,

I think your question is better of in the forum category "1. Installation / Deployment / Setup"
http://www.liferay.com/community/forums/-/message_boards/category/239393

I think there are more people who are able to help you and see your question in that category.

As in regard of your questions:

2) The default login url for Liferay is "http://yourdomain.com/c/portal/login" this will render a page with the login portlet set in a maximized state on the page.

Best Maarten
Ozeri Nir, geändert vor 12 Jahren.

RE: OpenId link

New Member Beiträge: 11 Beitrittsdatum: 16.09.10 Neueste Beiträge
Hi Maarten,

Thanks for the prompt response.
I will try to post the same question on that section as well but I am not convinced it is installation/setup related.

Thanks for the default login url, but I am trying to log the user in "problematically" by providing him a login URL which is generated exactly as the login page generate it (it is extracted form the login page).

I think the issue is related to the consecutive request which i am not sure what URL to use.

Any other pointers would be great.

Cheers,

Nir