I am working on a secure website that processes WCF REST services. Everything worked fine until I started protecting my site. I changed the anonymous form of authentication mode to Windows authentication and logged in to the global.asax file.
For a website that designs MVC architecture and uses internal services, everything works as expected, but the REST API does not work very well.
I added the security configuration to the web.config binding section as follows:
<binding name="webHttpBindingWindows">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Ntlm" proxyCredentialType="Ntlm"></transport>
</security>
</binding>
and
<binding name="webHttpBindingWindows">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows" proxyCredentialType="Windows"></transport>
</security>
</binding>
with and without:
<extendedProtectionPolicy policyEnforcement="WhenSupported"></extendedProtectionPolicy>
but I got this exception:
, IIS, , . ExtendedProtectionPolicy.PolicyEnforcement . IIS WhenSupported, WCF Never.
- , ?
IIS, . ( , .)
,
.