Foren

Liferay Remote Web Service Access Authentication

shivani mistry, geändert vor 7 Jahren.

Liferay Remote Web Service Access Authentication

New Member Beiträge: 4 Beitrittsdatum: 13.05.15 Neueste Beiträge
Hi,

I am using liferay GA3. I have a set of remote services to be accessed and I want the authentication to be done from url itself.

For e.g.
http://test%40liferay.com:test@localhost:8080/api/jsonws/user/get-user-by-email-address/company-id/10155/email-address/test%40liferay.com

I have set few properties in portal-ext.properties file as follows:
json.service.auth.token.enabled=false
jsonws.web.service.public.methods=*
json.service.public.methods=get*,has*,is*,find*
json.web.service.enabled=true
json.servlet.https.required=false

I tried few more properties like:
auth.token.ignore.origins=\com.liferay.portal.jsonwebservice.JSONWebServiceServiceAction:/user/get-user-by-email-address
json.service.auth.token.hosts.allowed=127.0.0.1,SERVER_IP

Doing so I m still unable to get the repsonse using the above url. It gives an exception: Authentication access required.

Please suggest what settings I am missing....
yang wang, geändert vor 7 Jahren.

RE: Liferay Remote Web Service Access Authentication

Junior Member Beiträge: 80 Beitrittsdatum: 24.08.15 Neueste Beiträge
I have the same issue. Did you fixed it?
shivani mistry, geändert vor 7 Jahren.

RE: Liferay Remote Web Service Access Authentication

New Member Beiträge: 4 Beitrittsdatum: 13.05.15 Neueste Beiträge
The authentication through URL is for SOAP based services. If you need to access JSON remote services, authentication through URL wont work.