1 write to AudienceRestriction
System.IdentityModel (1)
System\IdentityModel\Configuration\IdentityConfiguration.cs (1)
149
set { _serviceHandlerConfiguration.
AudienceRestriction
= value; }
13 references to AudienceRestriction
System.IdentityModel (13)
System\IdentityModel\Configuration\IdentityConfiguration.cs (7)
148
get { return _serviceHandlerConfiguration.
AudienceRestriction
; }
559
handlerConfiguration.
AudienceRestriction
.AudienceMode = element.AudienceUris.Mode;
563
handlerConfiguration.
AudienceRestriction
.AllowedAudienceUris.Add(new Uri(audienceUriElement.Value, UriKind.RelativeOrAbsolute));
657
handlerConfiguration.
AudienceRestriction
.AudienceMode = AudienceUriMode.Always;
658
handlerConfiguration.
AudienceRestriction
.AllowedAudienceUris.Clear();
660
handlerConfiguration.
AudienceRestriction
.AudienceMode = element.AudienceUris.Mode;
664
handlerConfiguration.
AudienceRestriction
.AllowedAudienceUris.Add(new Uri(audienceUriElement.Value, UriKind.RelativeOrAbsolute));
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (3)
345
SamlSecurityTokenRequirement.ShouldEnforceAudienceRestriction(this.Configuration.
AudienceRestriction
.AudienceMode, samlToken));
1586
if (this.Configuration == null || this.Configuration.
AudienceRestriction
.AllowedAudienceUris.Count == 0)
1599
SamlSecurityTokenRequirement.ValidateAudienceRestriction(this.Configuration.
AudienceRestriction
.AllowedAudienceUris, audienceRestriction.Audiences);
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (3)
913
if (this.Configuration == null || this.Configuration.
AudienceRestriction
.AllowedAudienceUris.Count == 0)
934
_samlSecurityTokenRequirement.ValidateAudienceRestriction(this.Configuration.
AudienceRestriction
.AllowedAudienceUris, audienceRestriction.Audiences);
990
this.ValidateConditions(samlToken.Assertion.Conditions, _samlSecurityTokenRequirement.ShouldEnforceAudienceRestriction(this.Configuration.
AudienceRestriction
.AudienceMode, samlToken));