Langue

SamlSecurityTokenHandler.SetDelegateFromAttribute Méthode

Définition

Cette méthode est appelée lorsqu’un type spécial de SamlAttribute est détecté. Le SamlAttribute passé encapsule un SamlAttribute qui contient une collection d’AttributeValues, chacune d’elles étant mappée à une revendication. Toutes les revendications sont retournées dans un ClaimsIdentity avec l’émetteur spécifié.

protected virtual void SetDelegateFromAttribute(Microsoft.IdentityModel.Tokens.Saml.SamlAttribute attribute, System.Security.Claims.ClaimsIdentity subject, string issuer);
abstract member SetDelegateFromAttribute : Microsoft.IdentityModel.Tokens.Saml.SamlAttribute * System.Security.Claims.ClaimsIdentity * string -> unit
override this.SetDelegateFromAttribute : Microsoft.IdentityModel.Tokens.Saml.SamlAttribute * System.Security.Claims.ClaimsIdentity * string -> unit
Protected Overridable Sub SetDelegateFromAttribute (attribute As SamlAttribute, subject As ClaimsIdentity, issuer As String)

Paramètres

attribute
SamlAttribute

SamlAttribute à traiter.

subject
ClaimsIdentity

Identité qui doit être modifiée pour refléter l’attribut SamlAttribute.

issuer
String

Identité de l’émetteur.

Exceptions

si nous avons deux délégués agissant en tant qu’identité, nous ne l’autorisez pas.

S’applique à