title: JWT token not accepted by Web APi2 authentication with JwtAuthForWebAPI
body: <p>I followed the tutorial but it's seems not working properly with JWT, but it was ok for basic authentication.</p>
  
  <p>I downloaded and installed JwtAuthForWebAPI. I also generated JWT token and trying to do a API call but error is <code>HTTP/1.1 401 Unauthorized</code>.</p>
  
  <p><strong>Do I have to implement/modify anything to transfer claims from JWT to Thread.CurrentPrincipal &amp; HttpContext.CurrentPrincipal?</strong></p>
  
  <p>My code is quite simple:
  global.asax.cs:</p>
  
  <pre><code>GlobalConfiguration.Configuration.MessageHandlers.Add(
      new JwtAuthenticationMessageHandler
      {
          AllowedAudience = reader.AllowedAudience,
          Issuer = reader.Issuer,
          SigningToken = builder.CreateFromKey(reader.SymmetricKey)
      });
  </code></pre>
  
  <p>Web.config:</p>
  
  <pre><code>&lt;configSections&gt;
      &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /&gt;
      &lt;section name="JwtAuthForWebAPI" type="JwtAuthForWebAPI.JwtAuthForWebApiConfigurationSection"/&gt;
    &lt;/configSections&gt;
  
    &lt;JwtAuthForWebAPI
      AllowedAudience="http://www.example.com"
      Issuer="corp"    
      SymmetricKey="cXdlcnR5dWlvcGFzZGZnaGprbHp4Y3Zibm0xMjM0NTY=" 
    /&gt;
  </code></pre>
  
  <p>Call example</p>
  
  <pre><code>GET http://localhost:34669/api/v1/tasks/8 HTTP/1.1 
  Host: localhost:34669 
  Authorization: Bearer  eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJjb3JwIiwiYXVkIjoiaHR0cDovL3d3dy5leGFtcGxlLmNvbSIsIm5iZiI6MTQwMDU1Mzc1NywiZXhwIjoxNzE2MTcyOTU3LCJ1bmlxdWVfbmFtZSI6ImJob2dnIiwiZ2l2ZW5fbmFtZSI6IkJvc3MiLCJmYW1pbHlfbmFtZSI6IkhvZ2ciLCJyb2xlIjpbIk1hbmFnZXIiLCJKdW5pb3JXb3JrZXIiXX0.Ls73kz80rCaCNqzc3K32BVO9_LnJDL8c1g5AXKIzn8w
  </code></pre>