Fórum

JSON WS Authentication Problem

thumbnail
Paul ., modificado 11 Anos atrás.

JSON WS Authentication Problem

Liferay Master Postagens: 522 Data de Entrada: 29/08/11 Postagens Recentes
I have been trying to access liferay JSON based webservice based on the documentation http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/json-web-services, however been stuck with the authentication part. After going through a number of threads:-
http://www.liferay.com/community/forums/-/message_boards/message/4035536
http://www.liferay.com/community/forums/-/message_boards/message/12364339

still unable to get the user authenticated. The documentation says that
Default parameters

When accessing secure JSON web services (user has to be authenticated), some parameters are made available to the web services by default. They need not to be specified explicitly, unless you want to change their values to something other than their defaults.

Default parameters are:

userId - id of authenticated user
user - full User object
companyId - users company
serviceContext - empty service context object


How to use them, how to change them, is still not clear. Tried a number of different combination for authentication still no luck.
Any ideas?