简体   繁体   English

在访问IIS Web应用程序时提示Windows登录凭据

[英]Prompt for windows login credentials when accessing IIS web application

When i try to access an ASP.NET MVC web application hosted in IIS 6.0, i'm getting a windows popup that wants me to enter my windows login name and password. 当我尝试访问IIS 6.0中托管的ASP.NET MVC Web应用程序时,出现一个Windows弹出窗口,要求我输入Windows登录名和密码。 After entering the credentials, i can then reach the login page. 输入凭据后,我便可以进入登录页面。

See in the below screenshot what fiddler captures when the windows login prompt pops up. 在下面的屏幕截图中,看到Windows登录提示弹出时,提琴手会捕获什么。 What setting do i need in order to avoid this windows prompt? 为了避免出现Windows提示,我需要什么设置?

在此处输入图片说明

Two options. 两种选择。

1) Disable Windows authentication. 1)禁用Windows身份验证。 Enable Anonymous or Forms. 启用匿名或表单。

2) Edit your IE settings. 2)编辑您的IE设置。 Add the site into trusted sites and go to custom level, simply scroll to the bottom and "login with current username and password" button ticked. 将站点添加到受信任站点并进入自定义级别,只需滚动至底部,然后选中“使用当前用户名和密码登录”按钮即可。 This will auto negotiate the windows login you are using into IIS as a pass thru. 这将自动协商您正在通过IIS使用的Windows登录。

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

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