<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
System Status
Announcements
Announcements
Search
Search
Select Language
0D54z00009M93csCABOkta Classic EngineAuthenticationAnswered2023-06-30T23:38:46.000Z2023-06-21T15:35:24.000Z2023-06-30T23:38:46.000Z

ZulkifliF.43069 (Customer) asked a question.

invalid_token signature is invalid - .NET core

Hello there!

 

I got this message when accessing my API endpoint:

invalid_token, signature is invalid 

 

the access token is working well when i use it on postman, for example when call this endpoint: oauth2/v1/userinfo

 

this is my code on startup.cs

 

services

        .AddAuthentication(options =>

        {

          options.DefaultAuthenticateScheme = OktaDefaults.ApiAuthenticationScheme;

          options.DefaultChallengeScheme = OktaDefaults.ApiAuthenticationScheme;

          options.DefaultSignInScheme = OktaDefaults.ApiAuthenticationScheme;

        }).AddOktaWebApi(new OktaWebApiOptions()

        {

          OktaDomain = Configuration["Security:OpenIdConnect:OktaDomain"],

          AuthorizationServerId = "default",

          Audience = "api://default"

        });

 

am i missed something?

 

thanks!


This question is closed.
Loading
invalid_token signature is invalid - .NET core
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply