<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.21.0" />

Microsoft.IdentityModel.Tokens.SecurityTokenInvalidAudienceException

This exception is thrown when 'audience' of a token was not valid.
public string InvalidAudience { get; set; }

Gets or sets the InvalidAudience that created the validation exception.

Initializes a new instance of the SecurityTokenInvalidAudienceException class.

Initializes a new instance of the SecurityTokenInvalidAudienceException class.

public SecurityTokenInvalidAudienceException(string message, Exception innerException)

Initializes a new instance of the SecurityTokenInvalidAudienceException class.

Initializes a new instance of the SecurityTokenInvalidAudienceException class.