asp.net-mvc – 在实时服务器上使用oauth登录失败

我正在使用OAuthWebSecurity登录facebook,它正在使用localhost.但是,然后部署到实时服务器,我收到以下错误消息:

远程服务器返回错误:(400)错误请求.

>我在Facebook上检查了域名详细信息是否正确.
>沙箱模式已禁用.
>我已禁用Windows防火墙 – 仍然得到相同的错误.
>无论是在live或localhost环境中,来自facebook的响应都具有相同的格式.
>实时服务器的日期和时间是正确的.

我在本地测试也将主机文件更改为实时域 – 仍然在本地工作.

这是堆栈跟踪:

[WebException: The Remote Server returned an error: (400) Bad Request.]
System.Net.WebClient.DownloadDataInternal(Uri address,WebRequest& request) +3291120
System.Net.WebClient.DownloadString(Uri address) +207
DotNetopenAuth.AspNet.Clients.FacebookClient.QueryAccesstoken(Uri returnUrl,String authorizationCode) +293
DotNetopenAuth.AspNet.Clients.oauth2client.VerifyAuthentication(HttpContextBase context,Uri returnPageUrl) +167
DotNetopenAuth.AspNet.OpenAuthSecurityManager.VerifyAuthentication(String returnUrl) +502
Microsoft.Web.WebPages.OAuth.OAuthWebSecurity.VerifyAuthenticationCore(HttpContextBase context,String returnUrl) +231

有什么建议?

解决方法

相关文章

### 创建一个gRPC服务项目(grpc服务端)和一个 webapi项目(...
一、SiganlR 使用的协议类型 1.websocket即时通讯协议 2.Ser...
.Net 6 WebApi 项目 在Linux系统上 打包成Docker镜像,发布为...
一、 PD简介PowerDesigner 是一个集所有现代建模技术于一身的...
一、存储过程 存储过程就像数据库中运行的方法(函数) 优点:...
一、Ueditor的下载 1、百度编辑器下载地址:http://ueditor....