title: Postman doesn't accept authorization and instead returns login page
body: <p>I've just started experimenting with APIs and making API requests through Postman. Everything is working fine, until I tried setting one of the controllers to &quot;Authorized&quot;, when Postman instead decided to return the login page in HTML format. Currently I'm not that concerned with why it does that, but rather why the authorization doesn't work.</p>
  <p>The controller I'm trying to call;</p>
  <pre><code>    [Authorize(Roles = &quot;Admin&quot;)]
      [HttpGet]
      [Route(&quot;~/api/GetRoles&quot;)]
      public async Task&lt;ActionResult&lt;IEnumerable&lt;IdentityRole&gt;&gt;&gt; GetRoles()
      {
          return await _roleManager.Roles.ToListAsync();
      }
  </code></pre>
  <p>What I've done is simply enter the user credentials for the admin account under &quot;Authorization&quot; - &quot;Basic Auth&quot; in Postman, which then creates a Base64 header. The response is a simple &quot;200 OK&quot; status with the html for my login page, which is what would appear if one tried to access this controller in a browser.</p>
  <p>For the authorization I've used Identity, which saves all user data in pre-designed database tables.</p>
  <p>Any ideas or tips for where to look to figure this out?</p>