Sdílet prostřednictvím


AppCompatSwitches Class

Definition

Identifiers used for switching between different app compat behaviors within the Microsoft.IdentityModel libraries.

public static class AppCompatSwitches
type AppCompatSwitches = class
Public Class AppCompatSwitches
Inheritance
AppCompatSwitches

Remarks

The Microsoft.IdentityModel libraries use AppContext to turn on or off certain API behavioral changes that might have an effect on application compatibility. This class defines the set of switches that are available to modify library behavior. Application compatibility is favored as the default - so if your application needs to rely on the new behavior, you will need to enable the switch manually. Setting a switch's value can be done programmatically through the SetSwitch(String, Boolean) method, or through other means such as setting it through MSBuild, app configuration, or registry settings. These alternate methods are described in the SetSwitch(String, Boolean) documentation.

Fields

UseRfcDefinitionOfEpkAndKid

Uses KeyExchangePublicKey for the token's kid header parameter. When using ECDH-based key wrap algorithms the public key portion of Key is also written to the token's epk header parameter.

Applies to