JwtSecurityTokenHandler.ValidateAudience Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.