有没有办法获取与 Windows Live ID 关联的电子邮件地址?
我有一个客户想要使用 Windows Live ID 委派身份验证 SDK 1.2 为其网站提供身份验证。
他们提出的架构是拥有一个数据库表,其中包含被授权使用该网站的用户的电子邮件地址。用户使用 Windows Live ID Web 身份验证登录后,他们希望将与该 Live ID 关联的电子邮件地址与表进行比较,并根据该地址允许/禁止用户访问该网站。
这可能吗?我找不到任何有关如何获取与 Windows Live ID 关联的电子邮件地址的文档。
I have a client that wants to use Windows Live ID Delegated Authentication SDK 1.2 to provide authentication for their website.
The architecture that they proposed was to have a database table that contained the email addresses of users who were authorized to use the site. Once the user logged using Windows Live ID web authentication, they wanted to compare the email address associated with that live ID to the table and allow/disallow the user access to the site based on that.
Is this possible? I can't find any documentation that talks about how to get the email address associated with the Windows Live ID.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最初正在寻找使用 Rest API 执行此操作的方法,但它似乎不起作用。
使用“wl.basics,wl.emails”解决了问题,尽管我没有禁用 javascript 时的后备方案。
来自 Rup 的示例:
http://isdk.dev.live.com/ISDK .aspx?category=Core+Concepts&index=1
I was originally looking for the way to do this with the Rest API, but it doesn't seem to work.
Using "wl.basics, wl.emails" solved the problem, albeit I don't have a fallback for when javascript is disabled.
Example from Rup:
http://isdk.dev.live.com/ISDK.aspx?category=Core+Concepts&index=1