Foren

Open session within Liferay through Restful webservices

Alex Man, geändert vor 7 Jahren.

Open session within Liferay through Restful webservices

Junior Member Beiträge: 70 Beitrittsdatum: 08.02.16 Neueste Beiträge
I have a standalone application (Java, PHP etc). The standalone application needs to call a Restful service in Liferay by passing the username and password and after authentication, opens a session for the particular user. The service returns a p_auth token back to the standalone application. There after standalone applications uses the p_auth for further communication with all other Liferay Restful web-services.



Can anyone please tell me some solution for this
thumbnail
Shivam Aggarwal, geändert vor 7 Jahren.

RE: Open session within Liferay through Restful webservices

Regular Member Beiträge: 122 Beitrittsdatum: 18.01.12 Neueste Beiträge
Hi Alex

As far as I see it,Liferay does not really support having a session when making a rest web service call.
You need to send valid credentials with all requests.
thumbnail
Sagar A Vyas, geändert vor 7 Jahren.

RE: Open session within Liferay through Restful webservices

Liferay Master Beiträge: 679 Beitrittsdatum: 17.04.09 Neueste Beiträge
You can store p_auth to APPLICATION_LEVEL / PORTLET_LEVEL session in Liferay , which you can use for further communication, if p_auth is not exist in session that means , force to ask user name and password.

Thanks,
Sagar Vyas