Foren
Create web service with authentication
Dimitrios Karageorgopoulos, geändert vor 11 Jahren.
Create web service with authentication
New Member Beiträge: 18 Beitrittsdatum: 01.06.12 Neueste Beiträge
Hi all,
I have created a web service in a portlet using Service Builder in Liferay 6.0 .
The URL of the service is of the form http://localhost:8080/myportlet/axis/myservice?wsdl
How can my service be accessible by authenticated users?
I have experimented with creating a custom role in Liferay and setting this role in the <security-role-ref> of portlet.xml and <role-mapper> in liferay-portlet.xml
but the WSDL is accessible from anybody and anybody can create a proxy and run its services
I have created a web service in a portlet using Service Builder in Liferay 6.0 .
The URL of the service is of the form http://localhost:8080/myportlet/axis/myservice?wsdl
How can my service be accessible by authenticated users?
I have experimented with creating a custom role in Liferay and setting this role in the <security-role-ref> of portlet.xml and <role-mapper> in liferay-portlet.xml
but the WSDL is accessible from anybody and anybody can create a proxy and run its services
Juan Gonzalez P, geändert vor 11 Jahren.
RE: Create web service with authentication
Liferay Legend Beiträge: 3089 Beitrittsdatum: 28.10.08 Neueste BeiträgeDimitrios Karageorgopoulos:
Hi all,
I have created a web service in a portlet using Service Builder in Liferay 6.0 .
The URL of the service is of the form http://localhost:8080/myportlet/axis/myservice?wsdl
How can my service be accessible by authenticated users?
I have experimented with creating a custom role in Liferay and setting this role in the <security-role-ref> of portlet.xml and <role-mapper> in liferay-portlet.xml
but the WSDL is accessible from anybody and anybody can create a proxy and run its services
You can only delimit the IP which the request comes from. For that just search for
axis.servlet.hosts.allowed
in portal.properties and configure.
You can add BASIC authentication, so every user who access WS only would do depending on which permissions he/she has.
Dimitrios Karageorgopoulos, geändert vor 11 Jahren.
RE: Create web service with authentication
New Member Beiträge: 18 Beitrittsdatum: 01.06.12 Neueste Beiträge
Dear Juan,
thank you for your reply. How can add BASIC authentication? Sorry for asking, but Iam new in Liferay
thank you for your reply. How can add BASIC authentication? Sorry for asking, but Iam new in Liferay
Juan Gonzalez P, geändert vor 11 Jahren.
RE: Create web service with authentication
Liferay Legend Beiträge: 3089 Beitrittsdatum: 28.10.08 Neueste BeiträgeDimitrios Karageorgopoulos:
Dear Juan,
thank you for your reply. How can add BASIC authentication? Sorry for asking, but Iam new in Liferay
Here you have a good guide:
http://www.liferay.com/web/antonio.junior/blog/-/blogs/12168124
Dimitrios Karageorgopoulos, geändert vor 11 Jahren.
RE: Create web service with authentication
New Member Beiträge: 18 Beitrittsdatum: 01.06.12 Neueste Beiträge
Thanks,
your link was very helpful
your link was very helpful