ASP.Net:忽略 Windows 身份验证

发布于 2024-07-13 05:36:19 字数 363 浏览 4 评论 0原文

我有一个应用程序需要使用“基本身份验证”; 但是,为了让您在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

用心笑 2024-07-20 05:36:22

检查一下...

我总是通过附加到进程来调试我的网络应用程序。

Check it...

I always used to debug my web apps by just attaching to the process.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文