通过Yahoo验证MVC 5 [英] Authenticating MVC 5 by Yahoo

查看:94
本文介绍了通过Yahoo验证MVC 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个MVC 5上的应用程序来登录Yahoo。我成功地在雅虎上创建了一个应用程序,现在在Startup.Auth.cs页面上传递了我的应用程序ID和应用程序密码后:



 app.UseYahooAuthentication(  app id   app secret); 





登录雅虎时它会抛出一个错误:



响应状态代码并不表示成功:401(禁止)

解决方案

您的错误代码有问题。



如果是禁止错误,那么它应该 403 。< br>


401 错误未经授权访问。可能是你的问题是这样的。如果是这样,请查看以下链接了解更多信息info。



响应状态代码并不表示成功:401


HTTP错误401未经授权

I am developing an application on MVC 5 to login with Yahoo. I successfully created an app on yahoo and now after passing my app id and app secret on the `Startup.Auth.cs` page:

app.UseYahooAuthentication("app id", "app secret");



While login with Yahoo it throws an error:

Response status code does not indicate success: 401 (Forbidden)

解决方案

Your error code is having some problem.

If it's a Forbidden error then it should be 403 .

401 error for Unauthorized access.May be your problem is this.If so please check below links for more info.

Response status code does not indicate success: 401

HTTP Error 401 Unauthorized


这篇关于通过Yahoo验证MVC 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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