Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.4 KB

wcf-binding-with-the-transportwithmessagecredential-security-mode.md

File metadata and controls

40 lines (28 loc) · 1.4 KB

WCF binding with the TransportWithMessageCredential security mode

Scope

Transparent

Version Introduced

4.6.1

Source Analyzer Status

Not planned

Change Description

Beginning in the .NET Framework 4.6.1, WCF binding that uses the TransportWithMessageCredential security mode can be set up to receive messages with unsigned "to" headers for asymmetric security keys.

By default, unsigned "to" headers will continue to be rejected in .NET Framework 4.6.1. They will only be accepted if an application opts into this new mode of operation using the Switch.System.ServiceModel.AllowUnsignedToHeader configuration switch.

  • Quirked
  • Build-time break

Recommended Action

Because this is an opt-in feature, it should not affect the behavior of existing apps.

To control whether the new behavior is used or not, use the following configuration setting:

<runtime>
    <AppContextSwitchOverrides value="Switch.System.ServiceModel.AllowUnsignedToHeader=true" />
</runtime>

Affected APIs

  • F:System.ServiceModel.BasicHttpSecurityMode.TransportWithMessageCredential
  • F:System.ServiceModel.BasicHttpsSecurityMode.TransportWithMessageCredential
  • F:System.ServiceModel.SecurityMode.TransportWithMessageCredential
  • F:System.ServiceModel.WSFederationHttpSecurityMode.TransportWithMessageCredential

Category

Windows Communication Foundation (WCF)