SecurityTokenHandler.Configuration Property

Definition

Gets or sets the SecurityTokenHandlerConfiguration object that provides configuration for the current instance.

C#
public System.IdentityModel.Tokens.SecurityTokenHandlerConfiguration Configuration { get; set; }

Property Value

The configuration object for the current instance.

Remarks

The Configuration property is typically set by the configuration infrastructure from the <securityTokenHandlerConfiguration> element in the configuration file during application start up.

In derived classes, you use the Configuration property to access configuration settings; for example, the issuer name registry to use in the ValidateToken method can be accessed from the SecurityTokenHandlerConfiguration.IssuerNameRegistry property of the configuration object.

Applies to

Продукт Версії
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1