Unable to use basic authentication to access WCF web service

I am trying to configure the WCF service to allow both Windows / NTLM and basic authentication. Unfortunately, given this configuration, only Windows / NTLM works, and basic authentication fails with http status code 401 Unauthorized .

Our IIS 7.5 server is configured to allow both of these authentication types. enter image description here

What is wrong with the configuration below that interferes with basic authentication?

<wsHttpBinding>
  <binding name="webBinding">
    <security mode="Transport">
      <transport clientCredentialType="Windows" />
      <transport clientCredentialType="Basic" realm="XXX.YYY.com" />
    </security>
  </binding>
</wsHttpBinding>

I also tried using it basicHttpBinding, as the forum post indicated that it wsHttpBindingcould prevent basic authentication if WCF sensed that the password was being sent in clear text.

+3
1

, Windows , Basic.

0

All Articles