留言板
Liferay Remote Web Service Access Authentication
shivani mistry,修改在7 年前。
Liferay Remote Web Service Access Authentication
New Member 帖子: 4 加入日期: 15-5-13 最近的帖子
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....
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,修改在7 年前。
RE: Liferay Remote Web Service Access Authentication
Junior Member 帖子: 80 加入日期: 15-8-24 最近的帖子
I have the same issue. Did you fixed it?
shivani mistry,修改在7 年前。
RE: Liferay Remote Web Service Access Authentication
New Member 帖子: 4 加入日期: 15-5-13 最近的帖子
The authentication through URL is for SOAP based services. If you need to access JSON remote services, authentication through URL wont work.