Share via


AudienceValidator Delegate

Definition

Validates the audiences found in the security token.

public delegate bool AudienceValidator(IEnumerable<string> audiences, SecurityToken securityToken, TokenValidationParameters validationParameters);
type AudienceValidator = delegate of seq<string> * SecurityToken * TokenValidationParameters -> bool
Public Delegate Function AudienceValidator(audiences As IEnumerable(Of String), securityToken As SecurityToken, validationParameters As TokenValidationParameters) As Boolean 

Parameters

audiences
IEnumerable<String>

The audiences found in the SecurityToken.

securityToken
SecurityToken

The SecurityToken being validated.

validationParameters
TokenValidationParameters

The TokenValidationParameters to be used for validating the token.

Return Value

true if the audience is valid; otherwise, false.

Applies to