MoblieServiceClient只提供两个字段作为响应 [英] MoblieServiceClient providing only two fields in response
问题描述
我使用MobileServiceClient进行身份验证,我的提供商是Microsoft和Google。在成功登录后,我收到了授权Token和Sid。但我想要更多细节。我为Xamarin表单使用此服务。有没有什么办法可以获得登录用户的更多细节,如电子邮件,用户名,verified_email,family_name等? 是的。将X-ZUMO-AUTH标头设置为ZUMO标记,向 /。auth / me
端点发送请求。您将返回一个包含所有声明和身份提供商令牌的JSON blob。您可以使用这些来获取您需要的信息。
I am using MobileServiceClient for authentication, my provider is Microsoft and Google. After success login in response I am getting auth Token and Sid. But I want more detail. I am using this service for Xamarin forms. Is there any way to get more detail of login user like email, username, verified_email, family_name etc?
Yes. Send a request to the /.auth/me
endpoint with the X-ZUMO-AUTH header set to the ZUMO token. You will get back a JSON blob that contains all the claims plus the identity provider token. You can use these to get the information you need if it is available.
这篇关于MoblieServiceClient只提供两个字段作为响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!