title: Get claims and subscription in Web Api Controller (.Net Core 2.1)
body: <p>I'm using JWT with .Net Core 2.1, and the </p>
  
  <pre><code>[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
  </code></pre>
  
  <p>decorator on my controller class.  In 2.0 it seemed you had to do something like the following, but it's now marked as obsolete:</p>
  
  <pre><code>var authenticateInfo = await HttpContext.Authentication.GetAuthenticateInfoAsync("Bearer");
  string accessToken = authenticateInfo.Properties.Items[".Token.access_token"];
  </code></pre>
  
  <p>I've seen some other fairly circuitous methods of extending authorisation classes and the like which I'd rather avoid.  I simply want to access the particulars of the token much as I'd encoded them, eg the .Sub, and custom claims I've added like "Name" and "Roles".  How to do so in .Net Core 2.1?</p>