title: Getting custom claim value from bearer token (Web API)
body: <p>In my ASP.NET Web API project I'm using bearer token authorization and I have added some custom claims to it, like this:</p>
  
  <pre><code>var authType = AuthConfig.OAuthOptions.AuthenticationType;
  var identity = new ClaimsIdentity(authType);
  identity.AddClaim(new Claim(ClaimTypes.Name, vm.Username));
  
  // custom claim
  identity.AddClaim(new Claim("CompanyID", profile.CompanyId.ToString()));
  </code></pre>
  
  <p>Is there any way I can access this additional claim value in the controller without an extra trip to the database?</p>