2
votes

I am using Liferay 6.2 CE. We have Liferay web application and now we want to make mobile(android) app for the same.

I will have to provide a login API using which registered user can login from mobile in Liferay web-app. Once user will be logged in he can continue access the website.

Also I need one access token based on that I can validate next api with the provided access_token.

Does liferay provide any login API?

1
I have gone through the liferay screens but I think we need to create a project with mobile based sdk and then I have to create whole app. But as I have already website ready in liferay. I have to provide api to mobile developers so they can call directly Liferay API. Is it possible I can create a api using LoginScreenlet which consume the users email id and password in Liferay project without sdk? - Ranjitsinh

1 Answers

1
votes

There is no webservice login API in Liferay.

All the Liferay webservice are visible at this url:

Authentication is made by passing login/password on the url like:

wget http://[email protected]:test@localhost:8080/api/jsonws/country/get-countries

You can also use Basic Authentication by adding header to your request (encode in base64).

If you need another Authentication process you have to develop your own web service. Documentation to do that is here: http://www.liferay.com/fr/documentation/liferay-portal/6.2/development/-/ai/json-web-services-liferay-portal-6-2-dev-guide-05-en

Sincerely