11 references to Audiences
System.IdentityModel (11)
System\IdentityModel\Selectors\SamlSecurityTokenAuthenticator.cs (4)
142
for (int i = 0; i < audienceRestrictionCondition.
Audiences
.Count; i++)
144
if (audienceRestrictionCondition.
Audiences
[i] == null)
149
if (StringComparer.Ordinal.Compare(audienceRestrictionCondition.
Audiences
[i].AbsoluteUri, this.allowedAudienceUris[j]) == 0)
154
if (audienceRestrictionCondition.
Audiences
[i].Equals(uri))
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (7)
934
_samlSecurityTokenRequirement.ValidateAudienceRestriction(this.Configuration.AudienceRestriction.AllowedAudienceUris, audienceRestriction.
Audiences
);
2101
audienceRestrictionCondition.
Audiences
.Add(new Uri(audience, UriKind.RelativeOrAbsolute));
2111
if (audienceRestrictionCondition.
Audiences
.Count == 0)
2141
if (condition.
Audiences
== null || condition.
Audiences
.Count == 0)
2149
for (int i = 0; i < condition.
Audiences
.Count; i++)
2152
writer.WriteElementString(SamlConstants.ElementNames.Audience, SamlConstants.Namespace, condition.
Audiences
[i].OriginalString);