Saml2SecurityTokenHandler.SetClaimsIdentityActorFromAttribute Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin