SamlSecurityTokenHandler.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 SamlSecurityToken are valid.
protected virtual void ValidateAudience (System.Collections.Generic.IEnumerable<string> audiences, Microsoft.IdentityModel.Tokens.SecurityToken securityToken, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
abstract member ValidateAudience : seq<string> * Microsoft.IdentityModel.Tokens.SecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> unit
override this.ValidateAudience : seq<string> * Microsoft.IdentityModel.Tokens.SecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> unit
Protected Overridable Sub ValidateAudience (audiences As IEnumerable(Of String), securityToken As SecurityToken, validationParameters As TokenValidationParameters)
Parameters
- audiences
- IEnumerable<String>
- securityToken
- SecurityToken
The SamlSecurityToken being validated.
- validationParameters
- TokenValidationParameters
The TokenValidationParameters to be used for validating the token.
Remarks
see ValidateAudience(IEnumerable<String>, SecurityToken, TokenValidationParameters) for additional details.