Export (0) Print
Expand All
Expand Minimize

Saml2SecurityTokenHandler.SetDelegateFromAttribute Method

.NET Framework 4.6 and 4.5

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

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected virtual void SetDelegateFromAttribute(
	Saml2Attribute attribute,
	ClaimsIdentity subject,
	string issuer
)

Parameters

attribute
Type: System.IdentityModel.Tokens.Saml2Attribute

The Saml2Attribute to use.

subject
Type: System.Security.Claims.ClaimsIdentity

The ClaimsIdentity that is the subject of this token.

issuer
Type: System.String

The issuer of the claim.

ExceptionCondition
InvalidOperationException

The Saml2Attribute does not contain any valid attribute values.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft