<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
0D54z0000A4fqM2CQIOkta Classic EngineIntegrationsAnswered2024-04-09T18:04:03.000Z2024-04-08T16:17:17.000Z2024-04-09T18:04:03.000Z

SeanK.84327 (Customer) asked a question.

SPA versus web okta app

I have current flutter app that deploys for both web and mobile. The web deployment intends to use the okta JavaScript SDK to handle the LOGIN using the SPA PKCE (code challenge and verifier) to get the id, access and refresh tokens. I think this approach requires a SPA approach.

 

I am looking to implement the self-service registration. I got the https://github.com/okta/okta-auth-js/tree/master/samples/generated/express-embedded-auth-with-sdk running in my docker container using a okta web app. I tried to switch to SPA but the demo is not configured or written that way.

 

Since I am trying to integrate both registration and login into a singular web application, how do I reconcile this?

 

Approach 1: try to change the okta demo app to use SPA with PKCE -- is that technically possible or advised?

Approach 2: try to change my current app to switch from SPA to web -- and away from PKCE and use clientSecret -- this would result with the clientSecret possibly bundled with the web deployment, which is why I went to the SPA PKCE approach.

 

Please advise.

 

Sean


  • Mihai N. (Okta, Inc.)

    Hi @SeanK.84327 (Customer)​ , Thank you for reaching out to the Okta Community! 

     

     This question is more appropriate for our dedicated Okta Developer Forum.

    My advice would be to reach out via devforum.okta.com to take advantage of their expertise.  

    While we'll do our best to answer all of your questions here, this medium is more inclined towards Okta core products and features (non-developer work). 

     

    Regards.

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Expand Post
      • Mihai N. (Okta, Inc.)

        Understood.

        If you have a paid account, please open a case or call the support line (800 219-0964) for immediate assistance.  

        Alternatively, you can email us at community@okta.com with your Okta contact's information and we'll try to reach out internally so we can get you connected to the appropriate resource.  

         

         

        Regards.

        --

        Help others in the community by liking or hitting Select as Best if this response helped you.

        Expand Post
This question is closed.
Loading
SPA versus web okta app