title: Authorization Role/Policy Attributes Not Working In .Net Core 3
body: <p>I've had no luck getting any Role or Policy attributes working in .Net Core 3. I started my project with the .Net Core Angular starter project with authentication.
  I figured this was something to do with the new .AddDefault methods so I have simplified it as much as I possibly can and it still doesn't work.</p>
  
  <p>Here is my policy:</p>
  
  <pre><code>services.AddAuthorization(options =&gt;
  {
      options.AddPolicy("IsAdmin", policy =&gt;
          policy.RequireClaim("role", "admin"));
  });
  </code></pre>
  
  <p>Here is my controller:</p>
  
  <pre><code>[Authorize(Policy = "IsAdmin")]
  [Route("api/[controller]")]
  public class AdminController : Controller 
  {
      ...
  </code></pre>
  
  <p>I made a custom Profile service that adds the claim to the token,</p>
  
  <pre><code>var claims = new List&lt;Claim&gt;();
  
  if (await _userManager.IsInRoleAsync(user, "Admin"))
  {
      claims.Add(new Claim(JwtClaimTypes.Role, "admin"));
  }
  
  context.IssuedClaims.AddRange(claims);
  </code></pre>
  
  <p>Inside my access token (from jwt.io):</p>
  
  <p><a href="https://i.stack.imgur.com/r1ZNnm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/r1ZNnm.png" alt="enter image description here"></a></p>
  
  <p>Other parts of configure services:</p>
  
  <pre><code>services.AddDefaultIdentity&lt;ApplicationUser&gt;()
      .AddRoles&lt;IdentityRole&gt;()
      .AddEntityFrameworkStores&lt;ApplicationDbContext&gt;();
  
  ...
  
  services.AddAuthentication()
      .AddIdentityServerJwt();
  </code></pre>
  
  <p>The plain <code>[Authorize]</code> tag is working fine with the access token on other controllers.</p>
  
  <p>When I hit this controller with the access token I get a <code>403</code> response</p>
  
  <p>What am I missing that is preventing this from working?</p>