ASP.Net:忽略 Windows 身份验证
我有一个应用程序需要使用“基本身份验证”; 但是,为了让您在 Visual Studio 中调试应用程序,IIS 要求该目录也启用“Windows 身份验证”。
问题是我的用户处理程序尝试发送基本身份验证请求以将它们与数据库进行比较...但是由于上述“Windows 身份验证”,IIS 插入标头的 NTLM 请求将基本身份验证请求的优先级降低了',这样就会由用户发送到服务器。
以前有人遇到过这种情况吗? 有没有一种方法可以在不启用 Windows 身份验证的情况下在 Visual Studio 中进行调试(或者至少阻止它请求请求的安全性)?
谢谢!
编辑:忘记提及,在开发环境之外,“Windows 身份验证”不会打开
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.
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.
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)?
Thanks!
Edit: Forgot to mention, outside of the development environment, 'windows authentication' would not be on
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查一下...
我总是通过附加到进程来调试我的网络应用程序。
Check it...
I always used to debug my web apps by just attaching to the process.