TokenValidationParameters.TypeValidator Property

Definition

Gets or sets a delegate that will be used to validate the type of the token. If the token type cannot be validated, an exception MUST be thrown by the delegate. Note: the 'type' parameter may be null if it couldn't be extracted from its usual location. Implementations that need to resolve it from a different location can use the 'token' parameter.

public Microsoft.IdentityModel.Tokens.TypeValidator TypeValidator { get; set; }
member this.TypeValidator : Microsoft.IdentityModel.Tokens.TypeValidator with get, set
Public Property TypeValidator As TypeValidator

Property Value

Remarks

If set, this delegate will be called to validate the 'type' of the token, instead of default processing. This means that no default 'type' validation will occur.

Applies to