title: How to simply decode JWT with System.IdentityModel.Tokens.Jwt
body: <p>If you look at <a href="https://github.com/jwt-dotnet/jwt" rel="nofollow">https://github.com/jwt-dotnet/jwt</a> there is a simple example of decoding and validating a JWT token with one line of code <code>JWT.JsonWebToken.Decode(token, secretKey);</code>.  I would like to use the Microsoft provided JWT library (<code>System.IdentityModel.Tokens.Jwt</code>) but I am unable to figure out how to complete this simple task.</p>
  
  <p>Given a JWT token and secret (HS256) how can I decode and validate a JWT like that sample or like <a href="http://jwt.io/" rel="nofollow">this website</a>?</p>