I created a simple page using the code provided by this page (the first sample):
我使用这个页面提供的代码创建了一个简单的页面(第一个示例):
http://www.dotnetopenauth.net/developers/code-snippets/programmatic-openid-relying-party/
http://www.dotnetopenauth.net/developers/code-snippets/programmatic-openid-relying-party/
But I can't seem to get it to work, I can redirect to the provider but when the provider redirects back to my page, I get error 500, "The request was rejected by the HTTP filter".
但是我似乎不能让它工作,我可以重定向到提供者,但是当提供者重定向到我的页面时,我得到错误500,“请求被HTTP过滤器拒绝”。
I already checked ISAPI filters which I have none.
我已经检查了ISAPI过滤器,我没有。
2 个解决方案
#1
1
I've never seen that error before. Is this page hosted by the Visual Studio Personal Web Server (Casini) or IIS? I suspect you have an HTTP filter installed in IIS (or perhaps your web.config file) that is rejecting the incoming message for some reason.
我以前从未见过这种错误。这个页面是由Visual Studio个人Web服务器(Casini)还是IIS托管的?我怀疑您在IIS(或者您的web)中安装了HTTP过滤器。配置文件),由于某种原因拒绝输入消息。
Note that you need to turn off ASP.NET's default page request validation on any page that can receive an OpenID authentication response because those responses can include character sequences that look like HTML/Javascript-injection attacks but in fact is harmless.
注意,您需要关闭ASP。NET在任何可以接收OpenID身份验证响应的页面上的默认页面请求验证,因为这些响应可以包含看起来像HTML/ javascript注入攻击但实际上是无害的字符序列。
#2
1
I discovered that I'm using Isa in the server, so I just followed this instructions to get it working.
我发现我在服务器中使用Isa,所以我按照下面的说明来让它工作。
http://blog.brianfarnhill.com/2009/02/19/sharepoint-gets-the-error-the-request-was-rejected-by-the-http-filter/
#1
1
I've never seen that error before. Is this page hosted by the Visual Studio Personal Web Server (Casini) or IIS? I suspect you have an HTTP filter installed in IIS (or perhaps your web.config file) that is rejecting the incoming message for some reason.
我以前从未见过这种错误。这个页面是由Visual Studio个人Web服务器(Casini)还是IIS托管的?我怀疑您在IIS(或者您的web)中安装了HTTP过滤器。配置文件),由于某种原因拒绝输入消息。
Note that you need to turn off ASP.NET's default page request validation on any page that can receive an OpenID authentication response because those responses can include character sequences that look like HTML/Javascript-injection attacks but in fact is harmless.
注意,您需要关闭ASP。NET在任何可以接收OpenID身份验证响应的页面上的默认页面请求验证,因为这些响应可以包含看起来像HTML/ javascript注入攻击但实际上是无害的字符序列。
#2
1
I discovered that I'm using Isa in the server, so I just followed this instructions to get it working.
我发现我在服务器中使用Isa,所以我按照下面的说明来让它工作。
http://blog.brianfarnhill.com/2009/02/19/sharepoint-gets-the-error-the-request-was-rejected-by-the-http-filter/