简体   繁体   English

浏览绑定到Active Directory的Intranet时,禁止自动(Windows)身份验证

[英]Prevents auto (windows) authentication when browing intranet bound to Active Directory

Whenever I run my MVC web application which uses Windows Authentication from Visual Studio, I get authenticated to my real domain account without any prompting. 每当我运行使用Visual Studio的Windows身份验证的MVC Web应用程序时,我都会在没有任何提示的情况下通过我的真实域帐户进行身份验证。 The problem is I want to run a few test and need to connect with other accounts as well. 问题是我想运行一些测试,并且还需要与其他帐户连接。 But despite I tried a lot of thing (tried several browsers, cleared hisotry, cookies, etc. and even tried removing a few credentials from the Seven "Credential Manager") I always and always get auto authenticated withouth any prompting (or warning or whatever that could help me cancel that). 但是,尽管我尝试了很多东西(尝试了几个浏览器,清除了hisotry,cookies等等,甚至试图从Seven“Credential Manager”中删除一些凭据)我始终并且始终在没有任何提示(或警告或其他任何内容)的情况下自动进行身份验证这可以帮我取消)。

How can I prevents this or at least authenticate myself with another account? 我如何防止这种情况或者至少使用其他帐户验证自己?

Note: There's no logout button on the website. 注意:网站上没有退出按钮。

EDIT (obsolete) 编辑(已过时)
I tried Private Browsing as someone (who removed his comment?!) suggested. 我试过私人浏览作为某人(他删除了他的评论?!)建议。 I still get auto-authenticate but this time I don't see the same exact output. 我仍然得到自动验证,但这次我没有看到相同的确切输出。
Where I usually see my login on the page (Chrome, IE, FF) I here see my full name. 我经常在页面上看到我的登录信息(Chrome,IE,FF),我在这里看到我的全名。
So, that changes something, but I don't know what and it still doesn't allow me to authenticate myself as someone else. 所以,这改变了一些东西,但我不知道是什么,它仍然不允许我作为别人认证自己。

EDIT 编辑
NVM that previous edit, it was a side effect of an unrelated operation I did before (It just took a restart to have a visible effect). 以前编辑的NVM,它是我之前做过的无关操作的副作用(它只是重新启动才能产生可​​见效果)。

To make Internet Explorer asks credentials every time you open an intranet page follow this steps: 要在每次打开Intranet页面时使Internet Explorer请求凭据,请执行以下步骤:

Tools->Internet Options->Security-> Select "Local intranet" and go to "Custom level...". 工具 - > Internet选项 - >安全 - >选择“本地Intranet”并转到“自定义级别...”。

After that go all the way down in the option list and change the option of "Logon" under "User Authentication" to "Prompt for user name and password. 之后,在选项列表中一直向下,并将“用户身份验证”下的“登录”选项更改为“提示输入用户名和密码”。

在此输入图像描述

I managed to change user, I don't know if every step I used were necessary but here's what I did that eventually allowed me to "logout". 我设法改变用户,我不知道我使用的每一步是否都是必要的,但这就是我所做的最终允许我“退出”的。

  • Switch to IIS Server instead of VS Dev server 切换到IIS服务器而不是VS Dev服务器
  • Close all browsers 关闭所有浏览器
  • Close all runnin ASP.Net Dev server 关闭所有runnin ASP.Net Dev服务器
  • Reset IIS (iisreset) 重置IIS(iisreset)
  • Launch Debug (which start a FF window) 启动Debug(启动FF窗口)

Now if I repeat the 3 last step, I can change user with no problem. 现在,如果我重复最后一步,我可以毫无问题地更改用户。

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

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