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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.