<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
0D54z0000A1UrVJCQ0Okta Classic EngineAuthenticationAnswered2025-09-13T09:01:51.000Z2024-02-27T04:40:41.000Z2024-02-28T21:07:47.000Z

Retrieving an access token for an OIDC application

Hi, we've implemented Okta using the okta-react package in conjunction with the okta-jwt-verifier-python package. The frontend is sending requests, with access tokens attached to the headers, to the backend where a decorator implementing okta-jwt-verifier-python verifies the attached JWT before allowing the request to proceed. It works great.

 

What we want to do next is allow certain users direct access to our API through an SDK we're developing using some sort of token. We were thinking of using access tokens, however we can get them, since the decorator already works.

 

I've looked into generating access tokens with an Okta API token but that doesn't seem possible and this document (https://support.okta.com/help/s/article/How-to-get-tokens-for-an-OIDC-application-without-a-browser-using-curlPostman?language=en_US) has managed to confuse me. Where do I get the "code_verifier" value from?

 

Can we avoid passing credentials for our API users in any way and get something like an anonymous access token?

 

What are our options?


This question is closed.
Loading
Retrieving an access token for an OIDC application
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