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

abudker picture abudker · Jul 15, 2009 · Viewed 12.6k times · Source

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'.

Answer

JP Alioto picture JP Alioto · Jul 15, 2009

Change your clientCredentialType to "Ntlm".