Compartir a través de


Saml2SecurityTokenHandler.CreateAttribute(Claim) Method

Definition

Creates a Saml2Attribute from a claim.

protected virtual Microsoft.IdentityModel.Tokens.Saml2.Saml2Attribute CreateAttribute (System.Security.Claims.Claim claim);
abstract member CreateAttribute : System.Security.Claims.Claim -> Microsoft.IdentityModel.Tokens.Saml2.Saml2Attribute
override this.CreateAttribute : System.Security.Claims.Claim -> Microsoft.IdentityModel.Tokens.Saml2.Saml2Attribute
Protected Overridable Function CreateAttribute (claim As Claim) As Saml2Attribute

Parameters

claim
Claim

The Claim from which to generate a Saml2Attribute.

Returns

A Saml2Attributecreated from the claim.

Exceptions

if claim is null.

if the claim has a property "ClaimsProperties.SamlAttributeNameFormat" and the value is not a valid absolute URI.

Applies to