Fórum

Autnenticating user using custom liferay service

thumbnail
Asad Saeed Awan, modificado 9 Anos atrás.

Autnenticating user using custom liferay service

Regular Member Postagens: 126 Data de Entrada: 16/01/15 Postagens Recentes
I want to authenticate user using custom liferay service. I mean first activity of android app shows the login screen, if user ID and password is correct it moves to next activity otherwise it display an error message using toast

If anyone feel any difficulty while understanding my question. Please ask me, I really need help.

Thank You
thumbnail
Jose M. Navarro, modificado 9 Anos atrás.

RE: Autnenticating user using custom liferay service

Regular Member Postagens: 138 Data de Entrada: 24/01/14 Postagens Recentes
Hi Asad,

The authentication process using Mobile SDK is just to send an authenticated request with user credentials to get the user attributes.

Since Android Mobile SDK 6.2.0.14 you have a helper class with this code already written and tested. Check SignIn class:
- Source code: https://github.com/liferay/liferay-mobile-sdk/blob/android-6.2.0.14/android/src/main/java/com/liferay/mobile/android/auth/SignIn.java an
- Documentation: https://github.com/liferay/liferay-mobile-sdk/blob/android-6.2.0.14/android/README.md#use

Regards

JM