IIS MVC 3 站点中的基本身份验证不起作用
我刚刚将 MVC 3 站点部署到我的 Windows 2008 Web Edition (IIS 7) 服务器,并尝试设置基本身份验证,以便它不会允许未经授权的访问。一开始这似乎有效,但是一旦我解决了问题并进行了更改,现在这个问题已经解决了,我的基本身份验证由于某种原因不再起作用 - 它让任何人都可以使用。
在 IIS7 中的身份验证设置下,我启用了基本身份验证,并禁用了所有其他形式的身份验证。我还尝试了其他各种组合,到目前为止,我尝试过的所有操作都使网站保持开放状态。
我想知道它是否正在缓存我的凭据,因此我尝试使用尚未访问该网站的其他浏览器进行尝试,但它仍然保持打开状态。
我在这里忽略了一些明显的事情吗?我以为我所要做的就是禁用所有形式的身份验证,除了基本身份验证?有什么想法可能会发生什么吗?
如果没有,我可以采取哪些措施来排除故障?我可以在 Firebug 中看到什么来了解可能发生的情况吗?
提前致谢。
I have just deployed an MVC 3 site to my Windows 2008 Web Edition (IIS 7) server, and am trying to set up Basic Authentication so that it will not allow unauthorized access. This seemed to work at first, but once I was troubleshooting a problem and making changes, now that this issue is fixed, my basic authentication for some reason no longer works -- it's letting anybody on.
Under my Authentication settings in IIS7, I have Basic Authentication enabled, and all other forms of authentication disabled. I've also tried other various combinations, and so far, everything I've tried is leaving the site wide open.
I wondered if it was caching my credentials, so I tried from a different browser from which the site has not been accessed, and it's still leaving it open.
Am I overlooking something obvious here? I thought all I had to do was leave all forms of authentication disabled, except for Basic? Any ideas what could be going on?
If not, any ideas on what I could do to troubleshoot? Is there anything I could see in Firebug to see what may be going on?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最终,这就是我想要实现的目标,我只是不知道如何表达它。阅读该答案中链接的文章后,我将尝试找出一种不同的方法来限制对此站点的访问(通过 IP 或使用我的单级身份验证)。
Ultimately, this was what I was trying to accomplish, I just wasn't sure how to articulate it. After reading the article linked in that answer, I'm going to try to figure out a different way to limit access to this site (either by IP or using my single-level authentication).