How to validate okta token in .netcore 3. 0 web api

I have tried couple of solution in my .netcore API but none of is working and there is no good documentation for it. Can i get the exact steps to validate the okta token which gets in authorization attribute with bearer token schema??

Hi @ahsanshakir

Did you get a chance to check the article here and resource server example here?

I have tried your suggested solution but it still not working and getting the following error
www-authenticate: Bearer error=“invalid_token”, error_description=“The signature key was not found”

Any suggestion??

also getting this error
contains authorization metadata, but a middleware was not found that supports authorization.
my code is services.AddAuthentication(options => { options.DefaultAuthenticateScheme = OktaDefaults.ApiAuthenticationScheme; options.DefaultChallengeScheme = OktaDefaults.ApiAuthenticationScheme; options.DefaultSignInScheme = OktaDefaults.ApiAuthenticationScheme; }) .AddOktaWebApi(new OktaWebApiOptions { OktaDomain = Configuration["OktaConfiguration:Domain"] });

I gets my token by calling getAccessToken() react js method.