JwtSecurityTokenHandler.ValidateTokenPayload 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.
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.