title: JWT cannot be retrieved by HttpContext.GetTokenAsync in .NET Core 2.1
body: <p>This one really has me scratching my head as I can create a JWT.  I can add an attribute to authorize a controller and see if I do not add an 'Authorization' 'Bearer (token)' to a header it will return a 401 unauthorized.  However something as simple as getting the string of the token to get it's payload claims is not working.</p>
  
  <p>So this works fine:</p>
  
  <pre><code>var token = Request.Headers["Authorization"];
  </code></pre>
  
  <p>This does not:</p>
  
  <pre><code>var token2 = await HttpContext.GetTokenAsync(JwtBearerDefaults.AuthenticationScheme, "access_token");
  </code></pre>
  
  <p>I have change the signature, hooked up the IHTTPContextAccessor in startup like so:</p>
  
  <pre><code>services.AddSingleton&lt;IHttpContextAccessor, HttpContextAccessor&gt;();
  </code></pre>
  
  <p>I can see that the IHttpContextAccessor has values, as well as the authorization key.  I could have sworn this used to work easily in .NET Core 2.0 and now it doesn't.  Is there a simple hookup I am missing in Startup or Program?  At this point I am going to just get the data from Request.Headers.  But that just feels like a hack.</p>