HTTP请求是未经授权的客户端身份验证方案'协商'。从服务器接收的身份验证标头是'NTLM' [英] The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'NTLM'

查看:194
本文介绍了HTTP请求是未经授权的客户端身份验证方案'协商'。从服务器接收的身份验证标头是'NTLM'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我前几天用的时候曾与身份验证问题颇为头疼的客户端和WCF Web服务的Windows身份验证即可。我得到的错误是HTTP请求是未经授权的客户端身份验证方案'协商'。从服务器接收的身份验证标头是NTLM堆栈解决方案都没有工作,因为其中大部分均与老办法。

Few days ago I had quite a headache with authentication problems when using Windows authentication between client and wcf web service. The error I was getting was "The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was "NTLM". None of the solutions on stack worked because most of them were related to old methods.

推荐答案

答案:并为我所说的话。问题是所有的职位对这一问题进行了相关的旧的Kerberos和IIS的地方代理凭据或AllowNTLM性能进行帮助的问题。我的情况是不同的。我从地上捡蠕虫小时后发现是有些IIS安装不包括协商提供商下的IIS Windows身份验证提供程序列表。因此,我不得不添加和向上移动。我的WCF服务开始如预期进行身份验证。下面是截图它应该如何看,如果你的使用匿名身份验证关闭Windows身份验证

THE ANSWER: And as I have said. The problem was all of the posts for such an issue were related to older kerberos and IIS issues where proxy credentials or AllowNTLM properties were helping. My case was different. What I have discovered after hours of picking worms from the ground was that somewhat IIS installation did not include Negotiate provider under IIS Windows authentication providers list. So I had to add it and move up. My WCF service started to authenticate as expected. Here is the screenshot how it should look if you are using Windows authentication with Anonymous auth OFF.

您需要右键单击Windows身份验证和选择供应商的菜单项。

You need to right click on Windows authentication and choose providers menu item.

希望这有助于节省一些时间。

Hope this helps to save some time.

这篇关于HTTP请求是未经授权的客户端身份验证方案'协商'。从服务器接收的身份验证标头是'NTLM'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆