<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
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
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