Freigeben über


Saml2SecurityTokenHandler.SetClaimsIdentityActorFromAttribute Method

Definition

This method gets called when a special type of Saml2Attribute is detected. The Saml2Attribute passed in wraps a Saml2Attribute that contains a collection of AttributeValues, each of which will get mapped to a claim. All of the claims will be returned in an ClaimsIdentity with the specified issuer.

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)

Parameters

attribute
Saml2Attribute

The Saml2Attribute to use.

identity
ClaimsIdentity

The ClaimsIdentity that is the subject of this token.

issuer
String

The issuer of the claim.

Exceptions

Will be thrown if the Saml2Attribute does not contain any valid Saml2AttributeValues.

Applies to