Accessing protected API on IdentityServer4 with Bearer Token
问题 I have attempted to search for a solution to this problem, but have not found the right search text. My question is, how can I configure my IdentityServer so that it will also accept/authorize Api Requests with BearerTokens? I have an IdentityServer4 configured and running. I also have configured a Test API on my IdentityServer like below: [Authorize] [HttpGet] public IActionResult Get() { return new JsonResult(from c in User.Claims select new { c.Type, c.Value }); } In my startup.cs