Decoding and verifying JWT token using System.IdentityModel.Tokens.Jwt

Within the package there is a class called JwtSecurityTokenHandler which derives from System.IdentityModel.Tokens.SecurityTokenHandler. In WIF this is the core class for deserialising and serialising security tokens. The class has a ReadToken(String) method that will take your base64 encoded JWT string and returns a SecurityToken which represents the JWT. The SecurityTokenHandler also has a ValidateToken(SecurityToken) method … Read more