SamlSecurityTokenHandler.SetDelegateFromAttribute 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 SamlAttribute is detected. The SamlAttribute passed in wraps a SamlAttribute that contains a collection of AttributeValues, each of which are mapped to a claim. All of the claims will be returned in an ClaimsIdentity with the specified issuer.
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)
Parameters
- attribute
- SamlAttribute
The SamlAttribute to be processed.
- subject
- ClaimsIdentity
The identity that should be modified to reflect the SamlAttribute.
- issuer
- String
Issuer Identity.
Exceptions
if we have two delegates acting as an identity, we do not allow this.