Język

SamlSecurityTokenHandler.SetDelegateFromAttribute Metoda

Definicja

Ta metoda jest wywoływana, gdy zostanie wykryty specjalny typ atrybutu SamlAttribute. Atrybut SamlAttribute przekazany w opakowuje atrybut SamlAttribute zawierający kolekcję AttributeValues, z których każda jest mapowana na oświadczenie. Wszystkie oświadczenia zostaną zwrócone w elemencie ClaimsIdentity z określonym wystawcą.

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)

Parametry

attribute
SamlAttribute

Atrybut SamlAttribute do przetworzenia.

subject
ClaimsIdentity

Tożsamość, która powinna zostać zmodyfikowana w celu odzwierciedlenia atrybutu SamlAttribute.

issuer
String

Tożsamość wystawcy.

Wyjątki

Jeśli mamy dwóch delegatów działających jako tożsamość, nie zezwalamy na to.

Dotyczy