DotNetOpenAuth和Facebook [英] DotNetOpenAuth and Facebook

查看:135
本文介绍了DotNetOpenAuth和Facebook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用DotNetOpenAuth对一些功能的Web单点登录。

I'm attempting to use DotNetOpenAuth for some web single sign on functionality.

我拿到样品工作了谷歌和雅虎,但我与Facebook挣扎。

I got the samples working for Google and Yahoo but am struggling with Facebook.

我使用的CTP(4.0.0.11165),并在随后的这太问题

I am using the CTP (4.0.0.11165) and have followed the example in this SO question.

不过,我得到上线运行时错误:

However, I get a runtime error on the line:

IAuthorizationState authorization = client.ProcessUserAuthorization();



该错误是:

The error is:

无法获得访问令牌。授权服务器报告原因:(未知)

Failed to obtain access token. Authorization Server reports reason: (unknown)

任何想法

推荐答案

由于Facebook正在使用OAuth 2.0的旧规格您正在使用的版本是与Facebook兼容。你必须使用较早的CTP(一个具有V3.5版本)与Facebook合作。抱歉。太臭使用OAuth 2.0时,每个人都在未格式化的规范不同的草案有什么。

The build you're using is incompatible with Facebook because Facebook is using an older spec of OAuth 2.0. You have to use an earlier CTP (one with a v3.5 version) to work with Facebook. Sorry. It stinks to be using OAuth 2.0 when everyone is on a different draft of the unfinalized spec.

这篇关于DotNetOpenAuth和Facebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆