Facebook / Google / Twitter, login username

Following the instructions in this azure tutorial to enter authentication via facebook, twitter or google, but since this page requires the user to log in every time the application starts. This is not an ideal option.

The Azure site talks about how to implement single sign-on in the Live SDK. Does anyone know how to do this using alternative providers (like Facebook)? Is there a way for mobile services to do this?

+4
source share
3 answers

I am not familiar with this particular platform, but, as a rule, a third-party login is usually used for a one-time login (or to restore this login).

I mean:
1) Sign in with a third party
2) Automatically create your own user based on data received from third-party manufacturers, also save this third-party user ID
3) Save cookie / on-device id for your user

4) The following logins are created based on the cookie ID / on-device
If it is lost for any reason, the user is retrained with a third party, and you compare the received third party identifier, which is stored in your database

+4
source

Josh Twist has a few posts you are likely to find helpful.

Here he looks at creating an authentication token: http://www.thejoyofcode.com/Generating_your_own_ZUMO_auth_token_Day_8_.aspx

In this post, it covers setting an authentication token in mobile services and caching a user ID: http://www.thejoyofcode.com/Setting_the_auth_token_in_the_Mobile_Services_client_and_caching_the_user_rsquo_s_identity_Day_10_.aspx

In this post, he follows how to handle expired tokens: http://thejoyofcode.com/Handling_expired_tokens_in_your_application_Day_11_.aspx

Between these three messages you have to work and work.

0
source

Single sign-on support for login providers has recently been added to the Azure Mobile Service. The post http://blogs.msdn.com/b/carlosfigueira/archive/2013/02/05/enabling-single-sign-on-for-windows-8-azure-mobile-apps.aspx explains how to use this function .

0
source

All Articles