Forums de discussion

Autnenticating user using custom liferay service

thumbnail
Asad Saeed Awan, modifié il y a 9 années.

Autnenticating user using custom liferay service

Regular Member Publications: 126 Date d'inscription: 16/01/15 Publications récentes
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, modifié il y a 9 années.

RE: Autnenticating user using custom liferay service

Regular Member Publications: 138 Date d'inscription: 24/01/14 Publications récentes
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