Okta Bearer Token is not Populating HTTPContext.Identity


I want to pass the access token to my Web API Controller but at the moment I put the [Authorize] Attribute (ASP.Net 4.6), it is not populating the information of the user (no claims).

It was working when I had enabled on my application, now that we want to migrate to token-based auth, it is not populating that HTTPContext.Identity.

I’ve configured the Startup.cs class as this:


And Also I’ve been configuring my OktaWebApiOptions like this:

The flow we want to follow is to use the token (Bearer {{token}}) to be able to access the resources of the server, but I’ve no idea what else needs to be configured to populate the information!