【问题标题】:I'M having hard time while integrating live ID with my MVC Website我在将 live ID 与我的 MVC 网站集成时遇到了困难
【发布时间】:2012-06-17 11:23:15
【问题描述】:

我在 3 天前开始搜索,通过验证用户的身份并取回包含以下数据的登录会话,我已经达到了一个很好的点:

access_token: "xxxx"
authentication_token: "xxxx"
expires: "1339934686"
expires_in: 3600

我想获取用户数据,如果您有先前的知识,您就会知道我需要解码authentication_token 值以获取包含一些属性(包括 UserID)的 JSON 对象,以获取用户数据。

当我尝试在我的 MVC 站点中包含由 Microsoft 示例提供的 JsonWebToken.cs 类时,它不能 解决一些参考,例如:

System.Runtime.Serialization.Json;
DataContractJsonSerializer;

当我搜索时,我发现我必须添加对

的引用
System.Runtime.Serialization.Json,
System.ServiceModel,
System.ServiceModel.Web.

当我这样做时,什么都没有发生。

最后,我为这篇长文道歉,但我的目的是解释问题和我经历的步骤。

我希望任何人都可以给我一个简单的 MVC 示例 URL,或者帮助我进行令牌解码。

【问题讨论】:

    标签: c# asp.net-mvc liveid


    【解决方案1】:

    也许这不会完全涵盖您的问题,但这是一篇不错的帖子,其中 ASP.NET MVC 应用程序使用 LiveID 但不使用 ASP.NET Membership 提供程序:

    http://blog.smarx.com/posts/actually-i-m-a-cia-agent

    1) 文档参考在这里:Windows Live ID Web Authentication SDK

    2) 和Live Connect Developer Center

    【讨论】:

      猜你喜欢
      • 2012-10-31
      • 1970-01-01
      • 2012-07-15
      • 1970-01-01
      • 2021-11-05
      • 2019-08-09
      • 2021-08-19
      • 2019-09-12
      • 2021-07-17
      相关资源
      最近更新 更多