Foros de discusión

Open session within Liferay through Restful webservices

Alex Man, modificado hace 7 años.

Open session within Liferay through Restful webservices

Junior Member Mensajes: 70 Fecha de incorporación: 8/02/16 Mensajes recientes
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, modificado hace 7 años.

RE: Open session within Liferay through Restful webservices

Regular Member Mensajes: 122 Fecha de incorporación: 18/01/12 Mensajes recientes
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, modificado hace 7 años.

RE: Open session within Liferay through Restful webservices

Liferay Master Mensajes: 679 Fecha de incorporación: 17/04/09 Mensajes recientes
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