加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – 突然,DotNetOpenAuth返回(400)错误请求

发布时间:2020-12-15 21:27:41 所属栏目:百科 来源:网络整理
导读:我的应用程序已部署近6个月,最新版本大约在3周前发布. 突然,今天Facebook Auth停止了工作.未更改或重新部署webapp,并且未更改Facebook应用程序设置. 使用Twitter进行身份验证仍然可行. 这是例外: DotNetOpenAuth.Messaging.ProtocolException: Error occurr
我的应用程序已部署近6个月,最新版本大约在3周前发布.

突然,今天Facebook Auth停止了工作.未更改或重新部署webapp,并且未更改Facebook应用程序设置.

使用Twitter进行身份验证仍然可行.

这是例外:

DotNetOpenAuth.Messaging.ProtocolException: Error occurred while sending a direct message or getting the response. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
   at System.Net.HttpWebRequest.GetResponse()
   at DotNetOpenAuth.Messaging.StandardWebRequestHandler.GetResponse(HttpWebRequest request,DirectWebRequestOptions options)
   --- End of inner exception stack trace ---
   at DotNetOpenAuth.Messaging.StandardWebRequestHandler.GetResponse(HttpWebRequest request,DirectWebRequestOptions options)
   at DotNetOpenAuth.Messaging.StandardWebRequestHandler.GetResponse(HttpWebRequest request)
   at DotNetOpenAuth.Messaging.Channel.GetDirectResponse(HttpWebRequest webRequest)
   at DotNetOpenAuth.Messaging.Channel.RequestCore(IDirectedProtocolMessage request)
   at DotNetOpenAuth.Messaging.Channel.Request(IDirectedProtocolMessage requestMessage)
   at DotNetOpenAuth.OAuth2.ClientBase.UpdateAuthorizationWithResponse(IAuthorizationState authorizationState,EndUserAuthorizationSuccessAuthCodeResponse authorizationSuccess)
   at DotNetOpenAuth.OAuth2.WebServerClient.ProcessUserAuthorization(HttpRequestInfo request)

知道会发生什么吗?我在Facebook的网站上看不到任何关于当前破坏变更或服务质量下降的信息.

解决方法

很可能Facebook最终升级了他们的OAuth 2.0支持,以符合最新的OAuth 2.0规范草案,该草案与您正在使用的DotNetOpenAuth版本不兼容.尝试下载最新的DotNetOpenAuth CTP,看看它是否有帮助.

也就是说,从来没有保证与Facebook或任何其他OAuth 2.0服务器之类的互操作性. OAuth 2.0不是最终规范,因此互操作性问题几乎是一种保证.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读