Interface IJwtReader
Service for parsing and validating Json Web Tokens.
public interface IJwtReaderMethods
GetValidatedJsonWebTokenAsync(string)
Validates a raw JSON Web Token and returns the content represented as a JsonWebToken instance.
Task<JsonWebToken> GetValidatedJsonWebTokenAsync(string jwt)Parameters
- jwtstring
- The raw JSON Web Token. 
Returns
- Task<JsonWebToken>
- The raw JSON Web Token represented as a JsonWebToken instance. 
ParseAsync(string, bool)
Parse and validate a raw JSON Web Token.
Task<IEnumerable<Claim>> ParseAsync(string jwt, bool validateLifetime)Parameters
- jwtstring
- The raw JSON Web Token. 
- validateLifetimebool
- Indicates whether or not the expiry and not before claims should be used to validate the lifetime of the token. 
Returns
- Task<IEnumerable<Claim>>
- The set of claims from the JSON Web Token.