Fórum
Open session within Liferay through Restful webservices
Alex Man, modificado 7 Anos atrás.
Open session within Liferay through Restful webservices
Junior Member Postagens: 70 Data de Entrada: 08/02/16 Postagens Recentes
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
Can anyone please tell me some solution for this
Shivam Aggarwal, modificado 7 Anos atrás.
RE: Open session within Liferay through Restful webservices
Regular Member Postagens: 122 Data de Entrada: 18/01/12 Postagens Recentes
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.
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.
Sagar A Vyas, modificado 7 Anos atrás.
RE: Open session within Liferay through Restful webservices
Liferay Master Postagens: 679 Data de Entrada: 17/04/09 Postagens Recentes
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
Thanks,
Sagar Vyas