简体   繁体   English

如何开始使用DotNetOpenAuth

[英]How to get started using DotNetOpenAuth

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过滤器。

I've never seen that error before. 我以前从未见过这个错误。 Is this page hosted by the Visual Studio Personal Web Server (Casini) or IIS? 此页面是由Visual Studio Personal Web Server(Casini)还是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. 我怀疑你在IIS(或者你的web.config文件)中安装了一个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. 请注意,您需要在可以接收OpenID身份验证响应的任何页面上关闭ASP.NET的默认页面请求验证,因为这些响应可能包含看起来像HTML / Javascript注入攻击但实际上无害的字符序列。

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/ http://blog.brianfarnhill.com/2009/02/19/sharepoint-gets-the-error-the-request-was-rejected-by-the-http-filter/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM