简体   繁体   English

ASP.Net:忽略Windows身份验证

[英]ASP.Net: Ignore Windows Auth

I have an application where I need to use 'Basic Authentication'; 我有一个需要使用“基本身份验证”的应用程序; however, in order for you to debug the application in Visual Studio, IIS requires the directory to also have 'Windows Authentication' enabled. 但是,为了让您在Visual Studio中调试应用程序,IIS要求目录还启用了“ Windows身份验证”。

The problem is my user handler tries to send out a request for basic authentication to compare them to a database... but the basic authentication request is pushed down in priority by the NTLM request IIS inserts into the header due to the above 'Windows Authentication', and so that'll get sent to the server by the user instead. 问题是我的用户处理程序尝试发送基本身份验证请求以将它们与数据库进行比较...但是由于上述“ Windows身份验证”,IIS将NTLM请求优先考虑基本身份验证请求,IIS将其插入标头”,这样用户就会将其发送到服务器。

Has anyone ran into this situation before? 有人遇到过这种情况吗? Is there a way to debug in Visual Studio without having windows authentication on (or at least keep it from requesting the security for requests)? 有没有一种方法可以在Visual Studio中进行调试而无需启用Windows身份验证(或至少使它无法为请求的安全性提出请求)?

Thanks! 谢谢!

Edit: Forgot to mention, outside of the development environment, 'windows authentication' would not be on 编辑:忘记提及了,在开发环境之外,“ Windows身份验证”将不会启用

Check it... 核实...

I always used to debug my web apps by just attaching to the process. 我总是习惯只通过附加到进程来调试我的Web应用程序。

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

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