<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
0D54z00007uWqy5CACOkta Classic EngineAPI Access ManagementAnswered2022-08-08T17:09:54.000Z2022-08-06T20:00:41.000Z2022-08-08T17:09:54.000Z

DarinH.78074 (Customer) asked a question.

Prefer to use HTTP/Rest to get code. What is the api/endpoint for that?

I have a expresss.js server that I am using for a auth proxy. I am setting up OIDC for my react application. I am using authorization code flow.

 

I see Okta has https://www.npmjs.com/package/@okta/oidc-middleware where I can use the library to request the code and handle the redirect to getting the token with the code.

 

However, I prefer to do this manually with node-fetch and consume the api endpoints to get the code and then the token.

 

Can anyone show me the endpoints/api, please that I can use to send the http request to get a code and then the token? It would be the equivalent to Google's https://accounts.google.com/o/oauth2/v2/auth.

 

Or would I use my issuer URI https://dev--------.okta.com/oauth2/default? And if so, do I include the default param?

 


This question is closed.
Loading
Prefer to use HTTP/Rest to get code. What is the api/endpoint for that?