0
votes

We're trying to use the mobile services authentication for a cross-platform mobile app. The User object returned, nicely provides the ID, but that's it.

user = await client.LoginAsync(this, MobileServiceAuthenticationProvider.Google);

We need the user's name and, ideally, email.

2

2 Answers

1
votes

if you're fine using a preview feature, they've just introduced enhanced user services...check out Enhanced users feature in Azure Mobile Services

1
votes

You will be using the OAuth , in which Windows Live, Google, Facebook and Twitter will be the way in which you have options of connecting users.

I needed to get more information on user and thus I wrote a question and ended up using the LoginAsync, but then 2 other things were CRITICAL for me to get more information

var userInfo = await MobileServices.MobileService.InvokeApiAsync(
"userInfo", HttpMethod.Get, null);

Then

with a Custom API - node.js code 

THEN an area in the portal with adding "SCOPE" which in Azure portal is like a web.config / app.config , then I was able to get email address (it does warn the user about it sharing this information, which is normal)

Visit this link: Azure Mobile Services - Getting more user information