Прочетете на английски Редактиране

Споделяне чрез


SamlSecurityTokenHandler.CreateClaims(SamlSecurityToken) Method

Definition

Creates claims from a SAML 1.1 token.

C#
protected virtual System.Security.Claims.ClaimsIdentity CreateClaims(System.IdentityModel.Tokens.SamlSecurityToken samlSecurityToken);

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

Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1