title: JwtSecurityTokenHandler and TokenValidationParameters
body: <p>I used to have a reference to <code>Microsoft.IdentityModel.Tokens.JWT</code> and everything was working fine. </p>
  
  <p>I updated to use the new <code>System.IdentityModel.Tokens.Jwt</code> but nothing seems to work now. It cannot find the <code>ValidateToken</code> method of the <code>JwtSecurityTokenHandler</code> and the <code>TokenValidationParameters</code> have no <code>AllowedAudience</code>, <code>SigningToken</code> or <code>ValidateExpiration</code> properties. </p>
  
  <p>What am I missing here? Can anyone provide with a working sample of a JWT validation with this?</p>
  
  <p>My "old" code :</p>
  
  <pre><code>private static void ValidateJwt(string jwt)
  {
      var handler = new JWTSecurityTokenHandler();
      var validationParameters = new Microsoft.IdentityModel.Tokens.JWT.TokenValidationParameters()
      {
          AllowedAudience = "https://my-rp.com",
          //SigningToken = new BinarySecretSecurityToken(Convert.FromBase64String(myBase64Key)),
          SigningToken = new X509SecurityToken(
             X509
             .LocalMachine
             .My
             .Thumbprint
             .Find("UYTUYTVV99999999999YTYYTYTY88888888", false)
             .First()),
          ValidIssuer = "https://my-issuer.com/trust/issuer",
          ValidateExpiration = true
      };
  
      try
      {
          var principal = handler.ValidateToken(jwt, validationParameters);
      }
      catch (Exception e)
      {
  
          Console.WriteLine("{0}\n {1}", e.Message, e.StackTrace);
      }
  
      Console.WriteLine();
  }
  </code></pre>