OpenID的重定向不工作 [英] Openid redirect not working

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

问题描述

我试过了OpenID的这个例子
 <一href=\"http://weblogs.asp.net/haithamkhedre/archive/2011/03/13/openid-authentication-with-asp-net-mvc3-dotnetopenauth-and-openid-selector.aspx\" rel=\"nofollow\">http://weblogs.asp.net/haithamkhedre/archive/2011/03/13/openid-authentication-with-asp-net-mvc3-dotnetopenauth-and-openid-selector.aspx
我应用了我的新建项目在同一code,我得到这个错误,当我点击登录页面的谷歌图标。我喧闹,我从这个网站下载的示例项目更改任何code,我仍然得到这个错误。

I tried this example for openid in http://weblogs.asp.net/haithamkhedre/archive/2011/03/13/openid-authentication-with-asp-net-mvc3-dotnetopenauth-and-openid-selector.aspx I applied the same code in my newly created project , I get this error when i click the google icon in the logon page. I din change any code from the sample project I downloaded from this website, still I get this error .

推荐答案

这听起来就像是一个MVC控制器的问题。您的帐户控制器被预期具有身份验证操作。而且,由于我们看到404,我建议你研究什么是错了你的路线。

This sounds just like an MVC controller problem. your Account controller is expected to have an Authenticate action. And since we're seeing a 404, I suggest you investigate what's wrong with your routes.

请注意,此网址应GET和POST请求。

Keep in mind that this URL should respond to both GET and POST requests.

这篇关于OpenID的重定向不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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