Rediger

Del via


SamlSecurityTokenHandler.CreateClaims(SamlSecurityToken) Method

Definition

Creates claims from a SAML 1.1 token.

protected:
 virtual System::Security::Claims::ClaimsIdentity ^ CreateClaims(System::IdentityModel::Tokens::SamlSecurityToken ^ samlSecurityToken);
protected virtual System.Security.Claims.ClaimsIdentity CreateClaims (System.IdentityModel.Tokens.SamlSecurityToken samlSecurityToken);
abstract member CreateClaims : System.IdentityModel.Tokens.SamlSecurityToken -> System.Security.Claims.ClaimsIdentity
override this.CreateClaims : System.IdentityModel.Tokens.SamlSecurityToken -> System.Security.Claims.ClaimsIdentity
Protected Overridable Function CreateClaims (samlSecurityToken As SamlSecurityToken) As ClaimsIdentity

Parameters

samlSecurityToken
SamlSecurityToken

A SamlSecurityToken that represents the security token from which to create the claims.

Returns

A ClaimsIdentity that contains the claims extracted from the token.

Exceptions

samlSecurityToken is null.

The Assertion property of samlSecurityToken is null.

The handler is not configured or an issuer name registry is not configured for the handler. (The Configuration property is null or is set to a SecurityTokenHandlerConfiguration with an IssuerNameRegistry property that is null.

The issuer name returned by the configured issuer name registry for the security token (samlSecurityToken) is null or empty.

Applies to