我正在尝试配置WCF服务以允许Windows/NTLM和基本身份验证。不幸的是,考虑到这种配置,只有Windows/NTLM能够正常工作,并且基本身份验证失败,并且带有http status code of 401 Unauthorized。无法使用基本身份验证访问WCF Web服务
我们的IIS 7.5服务器被配置为允许这两种身份验证。
下面的配置有什么问题阻止了基本认证的工作?
<wsHttpBinding>
<binding name="webBinding">
<security mode="Transport">
<transport clientCredentialType="Windows" />
<transport clientCredentialType="Basic" realm="XXX.YYY.com" />
</security>
</binding>
</wsHttpBinding>
我也曾尝试使用basicHttpBinding
,作为一个论坛上发帖表示,如果wsHttpBinding
might prevent basic authentication WCF感到口令以明文形式通过。
您是否安装了像Fiddler或Charles甚至Wireshark的HTTP嗅探器?没有?安装一个,然后发布结果。 – Aron 2014-07-07 18:42:33