
ZulkifliF.43069 (Customer) asked a question.
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!

Hi, @ZulkifliF.43069 (Customer)
Thank you for posting on our Community page!
My advice would be to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/
Thank you for reaching out to our Community and have a great day!
_____________________________________________________________________________
Coming soon: Get tips from community managers during Okta Community's first Ask Me Anything event on 6/22
_____________________________________________________________________________
Community members help others by clicking Like or Select as Best on responses. Try it today.
_____________________________________________________________________________