Forums de discussion

Authentication for AJAX/JSON clients

Anton D, modifié il y a 9 années.

Authentication for AJAX/JSON clients

New Member Publications: 16 Date d'inscription: 04/02/08 Publications récentes
Hi all,

Wer'e trying to determine whether we can pull up the user's session and associated profile from an AJAX/JSON request. We've tried using both:
- jsessionid
- p_auth token

For both, we haven't had any luck grabbing the users's session.

Our use case is a native app that is sending a request into a server-side Liferay instance.

Thanks in advance,
Frank Dux
thumbnail
Jose M. Navarro, modifié il y a 9 années.

RE: Authentication for AJAX/JSON clients

Regular Member Publications: 138 Date d'inscription: 24/01/14 Publications récentes
Hi,

For JSON services used from native apps, the concept of session is not valid. You have to track the session information in your client (native app) and for every request sent to the server, you have to send the authentication over again

Hope it helps

Regards!

JM