Langue

Saml2SecurityTokenHandler.SetClaimsIdentityActorFromAttribute Méthode

Définition

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

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

Paramètres

attribute
Saml2Attribute

Saml2Attribute à utiliser.

identity
ClaimsIdentity

Objet ClaimsIdentity de ce jeton.

issuer
String

Émetteur de la revendication.

Exceptions

Est levée si saml2Attribute ne contient aucune valeur Saml2AttributeValues valide.

S’applique à