JwtSecurityTokenHandler.CreateClaimsIdentity 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 ClaimsIdentity from a JwtSecurityToken.
protected virtual System.Security.Claims.ClaimsIdentity CreateClaimsIdentity (System.IdentityModel.Tokens.Jwt.JwtSecurityToken jwtToken, string issuer, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
abstract member CreateClaimsIdentity : System.IdentityModel.Tokens.Jwt.JwtSecurityToken * string * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> System.Security.Claims.ClaimsIdentity
override this.CreateClaimsIdentity : System.IdentityModel.Tokens.Jwt.JwtSecurityToken * string * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> System.Security.Claims.ClaimsIdentity
Protected Overridable Function CreateClaimsIdentity (jwtToken As JwtSecurityToken, issuer As String, validationParameters As TokenValidationParameters) As ClaimsIdentity
Parameters
- jwtToken
- JwtSecurityToken
The JwtSecurityToken to use as a Claim source.
- validationParameters
- TokenValidationParameters
The TokenValidationParameters to be used for validating the token.
Returns
A ClaimsIdentity containing the Claims.