Saml2SecurityTokenHandler.CreateAttribute(Claim) 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.
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.