Compartilhar via


JsonWebTokenHandler.CreateClaimsIdentity Method

Definition

Overloads

CreateClaimsIdentity(JsonWebToken, TokenValidationParameters)

Creates a ClaimsIdentity from a JsonWebToken.

CreateClaimsIdentity(JsonWebToken, TokenValidationParameters, String)

Creates a ClaimsIdentity from a JsonWebToken with the specified issuer.

CreateClaimsIdentity(JsonWebToken, TokenValidationParameters)

Creates a ClaimsIdentity from a JsonWebToken.

protected virtual System.Security.Claims.ClaimsIdentity CreateClaimsIdentity (Microsoft.IdentityModel.JsonWebTokens.JsonWebToken jwtToken, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
abstract member CreateClaimsIdentity : Microsoft.IdentityModel.JsonWebTokens.JsonWebToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> System.Security.Claims.ClaimsIdentity
override this.CreateClaimsIdentity : Microsoft.IdentityModel.JsonWebTokens.JsonWebToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> System.Security.Claims.ClaimsIdentity
Protected Overridable Function CreateClaimsIdentity (jwtToken As JsonWebToken, validationParameters As TokenValidationParameters) As ClaimsIdentity

Parameters

jwtToken
JsonWebToken

The JsonWebToken to use as a Claim source.

validationParameters
TokenValidationParameters

The TokenValidationParameters to be used for validating the token.

Returns

A ClaimsIdentity containing the Claims.

Applies to

CreateClaimsIdentity(JsonWebToken, TokenValidationParameters, String)

Creates a ClaimsIdentity from a JsonWebToken with the specified issuer.

protected virtual System.Security.Claims.ClaimsIdentity CreateClaimsIdentity (Microsoft.IdentityModel.JsonWebTokens.JsonWebToken jwtToken, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters, string issuer);
abstract member CreateClaimsIdentity : Microsoft.IdentityModel.JsonWebTokens.JsonWebToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters * string -> System.Security.Claims.ClaimsIdentity
override this.CreateClaimsIdentity : Microsoft.IdentityModel.JsonWebTokens.JsonWebToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters * string -> System.Security.Claims.ClaimsIdentity
Protected Overridable Function CreateClaimsIdentity (jwtToken As JsonWebToken, validationParameters As TokenValidationParameters, issuer As String) As ClaimsIdentity

Parameters

jwtToken
JsonWebToken

The JsonWebToken to use as a Claim source.

validationParameters
TokenValidationParameters

The TokenValidationParameters to be used for validating the token.

issuer
String

Specifies the issuer for the ClaimsIdentity.

Returns

A ClaimsIdentity containing the Claims.

Applies to