Share via


Saml2SecurityTokenHandler.ValidateAudience Method

Definition

Determines if the audience found in a Saml2SecurityToken is 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>

The audiences found in the Saml2SecurityToken

securityToken
SecurityToken

The Saml2SecurityToken that is being validated.

validationParameters
TokenValidationParameters

The TokenValidationParameters to be used for validating the token.

Remarks

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

Applies to