JwtSecurityTokenHandler.ValidateTokenPayload Method

Definition

Validates the JSON payload of a JwtSecurityToken.

protected System.Security.Claims.ClaimsPrincipal ValidateTokenPayload (System.IdentityModel.Tokens.Jwt.JwtSecurityToken jwtToken, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
member this.ValidateTokenPayload : System.IdentityModel.Tokens.Jwt.JwtSecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> System.Security.Claims.ClaimsPrincipal
Protected Function ValidateTokenPayload (jwtToken As JwtSecurityToken, validationParameters As TokenValidationParameters) As ClaimsPrincipal

Parameters

jwtToken
JwtSecurityToken

The token to validate.

validationParameters
TokenValidationParameters

The TokenValidationParameters to be used for validating the token.

Returns

A ClaimsPrincipal from the jwt. Does not include the header claims.

Applies to