Freigeben über


JwtSecurityTokenHandler.ValidateAudience Method

Definition

Determines if the audiences found in a JwtSecurityToken are valid.

protected virtual void ValidateAudience (System.Collections.Generic.IEnumerable<string> audiences, System.IdentityModel.Tokens.Jwt.JwtSecurityToken jwtToken, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
abstract member ValidateAudience : seq<string> * System.IdentityModel.Tokens.Jwt.JwtSecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> unit
override this.ValidateAudience : seq<string> * System.IdentityModel.Tokens.Jwt.JwtSecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> unit
Protected Overridable Sub ValidateAudience (audiences As IEnumerable(Of String), jwtToken As JwtSecurityToken, validationParameters As TokenValidationParameters)

Parameters

audiences
IEnumerable<String>

The audiences found in the JwtSecurityToken.

jwtToken
JwtSecurityToken

The JwtSecurityToken being validated.

validationParameters
TokenValidationParameters

The TokenValidationParameters to be used for validating the token.

Remarks

See ValidateAudience(IEnumerable<String>, SecurityToken, TokenValidationParameters) for additional details.

Applies to