Прочетете на английски Редактиране

Споделяне чрез


SamlSecurityTokenAuthenticator.ValidateAudienceRestriction Method

Definition

Validates that the SamlSecurityToken security token was intended for this Web service.

C#
protected virtual bool ValidateAudienceRestriction(System.IdentityModel.Tokens.SamlAudienceRestrictionCondition audienceRestrictionCondition);

Parameters

audienceRestrictionCondition
SamlAudienceRestrictionCondition

A SamlAudienceRestrictionCondition that specifies the set of target Web services for which the SamlSecurityToken security token is intended.

Returns

true if the Audiences property of the audienceRestrictionCondition parameter is in the AllowedAudienceUris collection; otherwise, false.

Remarks

The ValidateAudienceRestriction method is called by the ValidateTokenCore method when the AudienceUriMode property is set to Always or BearerKeyOnly.

Applies to

Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1