[英]How to access user data in Azure Mobile App services (.Net backend)
I'm working on an app using Azure's Mobile App services (as opposed to Azure Mobile Services). 我正在使用Azure的移动应用程序服务(而不是Azure移动服务)开发应用程序。 I've successfully implemented the single sign-on with FB (mentioned here: https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-how-to-configure-facebook-authentication-preview/ ), but now that I can log in I can't figure out how to access the user information on the backend (such as basic user information and access tokens).
我已经成功地通过FB实现了单点登录(在此处提及: https : //azure.microsoft.com/en-us/documentation/articles/app-service-mobile-how-to-configure-facebook-authentication-预览/ ),但是现在我可以登录了,我不知道如何访问后端的用户信息(例如基本用户信息和访问令牌)。
Could someone please provide an example or point me to a tutorial explaining how to access this data? 有人可以提供一个例子,也可以给我指出一个解释如何访问此数据的教程吗?
Take a look at the following tutorial blog post: http://blogs.msdn.com/b/carlosfigueira/archive/2013/12/16/enhanced-users-feature-in-azure-mobile-services.aspx - also http://blogs.msdn.com/b/carlosfigueira/archive/2012/10/25/getting-user-information-on-azure-mobile-services.aspx 请看以下教程博客文章: http : //blogs.msdn.com/b/carlosfigueira/archive/2013/12/16/enhanced-users-feature-in-azure-mobile-services.aspx-也是http ://blogs.msdn.com/b/carlosfigueira/archive/2012/10/25/getting-user-information-on-azure-mobile-services.aspx
This is written a while ago, and uses the NodeJS backend, but you should be able to translate this to .NET as the same basic information exists - you use GetIdentities() to get the facebook token, then use the Facebook REST interface or the SDK ( http://facebooksdk.net/ ) to get the rest of the information you need. 这是前一阵子写的,并使用NodeJS后端,但是您应该能够将它转换为.NET,因为存在相同的基本信息-您可以使用GetIdentities()获取Facebook令牌,然后使用Facebook REST接口或SDK( http://facebooksdk.net/ )来获取您需要的其余信息。
The basic piece of information you need is to use the GetIdentities() call to get your 您需要的基本信息是使用GetIdentities()调用来获取您的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.