如何强制 .net WCF 客户端在 basicHttpBinding 中使用 NTLM? [英] How to force a .net WCF client to use NTLM in an basicHttpBinding?

查看:76
本文介绍了如何强制 .net WCF 客户端在 basicHttpBinding 中使用 NTLM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我的安全节点定义如下:

right now I have the security node defined like this:

<security mode="TransportCredentialOnly">
    <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
    <message clientCredentialType="UserName" algorithmSuite="Default" />
</security>

我收到以下错误:

HTTP 请求未经授权,客户端身份验证方案为协商".从服务器收到的身份验证标头是NTLM".

The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'NTLM'.

推荐答案

更改您的 clientCredentialTypeNtlm".

这篇关于如何强制 .net WCF 客户端在 basicHttpBinding 中使用 NTLM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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