【问题标题】:LEGACY EDGE ONLY: HTTP request is unauthorized with client authentication scheme 'Negotiate'. .'LEGACY EDGE ONLY:HTTP 请求未经客户端身份验证方案“协商”的授权。 。
【发布时间】:2020-06-17 07:02:21
【问题描述】:

我有一个调用 wcf 服务的应用程序,该应用程序使用 Windows 身份验证,并且禁用了匿名访问。我仍然在访问服务时遇到错误:

'HTTP 请求未通过客户端身份验证方案“协商”进行授权。从服务器收到的身份验证标头是“协商,NTLM”。 ' 奇怪的是它在 IE11 和 chrome (v83) 中运行良好,这个问题只出现在 Windows 10 1809 版本上。 在下面附上我的 IIS 的屏幕截图。

谁能提出可能的问题?

【问题讨论】:

    标签: iis windows-10 microsoft-edge ntlm-authentication negotiate


    【解决方案1】:

    尝试在 iis 中设置以下设置:

    • 打开 iis,选择网站
    • 选择“配置编辑器”
    • 选择 ‘system.webServer/security/authentication/windowsAuthentication’
    • 使用AppPoolCredential 为True

    确保 WCF 和 .net 应用程序 URL 使用相同的协议。

    将应用程序池用户设置为域帐户。

    在客户端配置设置如下代码:

    <security mode="TransportCredentialOnly">
        <transport clientCredentialType="Windows" />
    </security>
    

    您可以参考以下链接了解更多详情:L

    401 Client 'Negotiate', Server 'Negotiate,NTLM' When Calling WCF Server to Server

    【讨论】:

      猜你喜欢
      • 2012-04-10
      • 2011-01-16
      • 1970-01-01
      • 2018-11-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-22
      相关资源
      最近更新 更多