SamlSecurityTokenRequirement.ValidateAudienceRestriction 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.
Checks the specified list of Audience URIs with the AllowedAudienceUri list.
public:
virtual void ValidateAudienceRestriction(System::Collections::Generic::IList<Uri ^> ^ allowedAudienceUris, System::Collections::Generic::IList<Uri ^> ^ tokenAudiences);
public virtual void ValidateAudienceRestriction (System.Collections.Generic.IList<Uri> allowedAudienceUris, System.Collections.Generic.IList<Uri> tokenAudiences);
abstract member ValidateAudienceRestriction : System.Collections.Generic.IList<Uri> * System.Collections.Generic.IList<Uri> -> unit
override this.ValidateAudienceRestriction : System.Collections.Generic.IList<Uri> * System.Collections.Generic.IList<Uri> -> unit
Public Overridable Sub ValidateAudienceRestriction (allowedAudienceUris As IList(Of Uri), tokenAudiences As IList(Of Uri))
Parameters
Exceptions
tokenAudiences
is an empty collection.
-or-
allowedAudienceUris
is an empty collection.
-or-
Validation fails.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.