<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
0D54z00007jzQ5RCAUOkta Classic EngineAuthenticationAnswered2022-06-22T17:56:07.000Z2022-06-21T11:51:00.000Z2022-06-22T17:56:07.000Z

RojaP.77403 (Customer) asked a question.

Okta IDX interaction code flow for single page web app

https://www.npmjs.com/package/@okta/okta-auth-js

how to obtain the tokens for interaction code flow for single page web app

 

Strategies to obtain tokens: Web and native clients can obtain tokens using the authorization_code flow which uses a client secret stored in a secure location. SPA applications should use the PKCE flow which does not use a client secret.

 

I wanted to use the same approach as authorization_code  but with the interaction code flow will it be possible I tried with idx.authenticate() for validate the user creds in SPA side and in authClient config adding the webapp server redirect uri. How to pass the interaction code to web app from SPA ?


This question is closed.
Loading
Okta IDX interaction code flow for single page web app