ValidationParameters.AudienceValidator Property

Definition

Allows overriding the delegate that will be used to validate the audience.

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

Property Value

The AudienceValidationDelegate used to validate the issuer of a token

Exceptions

Thrown when the value is set as null.

Remarks

If set, this delegate will be responsible for validating the 'audience', instead of default processing. This means that no default 'audience' validation will occur.

Applies to