【发布时间】:2014-03-24 12:11:02
【问题描述】:
我正在为一个组织构建一个 Intranet ASP.NET Web 应用程序,并希望使用 Windows 身份验证对用户进行身份验证。我有两个 WCF WebHttpBinding 绑定的自托管服务。两者都使用带有 RESTHttpBinding 配置的 webHttpBinding。
<webHttpBinding>
<binding name="RESTHttpBinding">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows"/>
</security>
</binding>
</webHttpBinding>
我的服务在 Chrome、Opera 和 IE 上正常运行(提示进行身份验证)(在后一种情况下 - 仅当我将安全设置中的用户身份验证中的登录设置为“提示输入用户名和密码”时)。但在 Firefox 中,我可以使用 this 方法来允许自动身份验证,或者得到与 this post 中描述的完全相同的结果:只是 401 Unauthorized 和空白页。
我花了几个小时在谷歌上搜索并尝试不同的选择。我找不到让 Firefox 显示提示的方法。
【问题讨论】:
标签: asp.net wcf firefox authentication windows-authentication