【问题标题】:MVC 3/4 intranet application automatic / slient authentication with ChromeMVC 3/4 Intranet 应用程序自动/使用 Chrome 的静默身份验证
【发布时间】:2013-11-07 17:29:38
【问题描述】:

我使用 MVC3 内网样板/模板创建了一个简单的应用程序。自动身份验证适用于本地计算机上的 Internet Explorer 以及部署在服务器上时。

Chrome 在本地计算机上进行身份验证,但在服务器上会提示输入凭据。 Firefox 在两种情况下都会提示输入凭据(如预期的那样)

服务器设置:

Windows Server 2008 R2、IIS7.5

MVC 应用程序是“DefaultWebSite”下的应用程序。应用程序文件夹上的身份验证是

Anonymous Authentication: Disabled
ASP.NET Impersonation:  Tested Enabled & Disabled
Forms Authentication: Disabled
Windows Authentication: Enabled 

WebConfig 要点:

<system.web>
    <authentication mode="Windows" />
    <authorization>
      <deny users="?" />
    </authorization>
    <identity impersonate="true" />
</system.web>

<system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true" />
</system.webServer>

什么可能导致 Chrome 提示输入凭据? Intranet 上的其他资源在 Chrome 中没有此行为,它只是让您登录。即 SharePoint。

【问题讨论】:

    标签: asp.net-mvc google-chrome iis-7.5 windows-server-2008-r2


    【解决方案1】:

    这是 Google Chrome 的预期行为。

    查看Google Chrome: passthrough Windows authentication 线程以获取更多信息。

    【讨论】:

      猜你喜欢
      • 2013-06-19
      • 2011-11-26
      • 2014-02-05
      • 1970-01-01
      • 1970-01-01
      • 2010-09-09
      • 2019-05-28
      • 2013-01-05
      • 1970-01-01
      相关资源
      最近更新 更多