Facebook OAuth使用Microsoft.Web.WebPages.OAuth突然停止工作

时间:2017-04-09 00:46:56

标签: .net facebook asp.net-mvc-4 oauth

我有一个使用Microsoft.Web.WebPages.OAuth库的旧MVC 4.0应用程序。

问题开始于2周前,当facebook停止支持API的v2.2时。

据我所知,facebook现在返回JSON,而我正在使用的代码是使用表单发布方法查找数据。

失败的电话如下:

public ActionResult ExternalLoginCallback( string returnUrl ) {
			AuthenticationResult result = OAuthWebSecurity.VerifyAuthentication( Url.Action( "ExternalLoginCallback", new { ReturnUrl = returnUrl } ) );
			if( !result.IsSuccessful ) {
				return RedirectToAction( "LoginFailed", "Auth", new { reason = "Unable to authenticate with your provider. Please try again." } );
			}

是否有人会修改OAuthWebSecurity.VerifyAuthentication方法以使用json而不是表单变量?

感谢任何帮助。

由于

0 个答案:

没有答案
相关问题