How to force a .net WCF client to use NTLM in an basicHttpBinding?

筅森魡賤 提交于 2019-12-09 09:54:05

问题


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>

Im getting the following error:

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


回答1:


Change your clientCredentialType to "Ntlm".



来源:https://stackoverflow.com/questions/1134119/how-to-force-a-net-wcf-client-to-use-ntlm-in-an-basichttpbinding

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!