<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
0D54z000092wODaCAMOkta Classic EngineAuthenticationAnswered2023-04-14T06:23:20.000Z2023-04-10T09:00:36.000Z2023-04-14T06:23:20.000Z

iliyazs.03457 (Customer) asked a question.

Open a new popup window for login credentials instead of a redirect for OIDC React SPA application

I have a react SPA application in which I'm using OKTA OpenID connect for authentication. I'm using "@okta/okta-react" for react hooks, Instead of opening login screen in the same window and redirecting back and forth I want to open a new browser window (not new tab) to enter the login details. Is it possible to achieve this functionality? If yes how can I achieve this?

 

Thanks.


  • Paul S. (Okta, Inc.)

    Hello @iliyazs.03457 (Customer)​ Thank you for reacting out to our Community!

     

    I have done some research on this matter and I was unable to find a method to achieve this. You can setup the application to open in a separate tab, but as far as I am aware not new tab.

    However you can add a Feature Request on our Idea section, for a chance that this functionality to be added in the future.

    https://support.okta.com/help/s/ideas

     

    Additionally if you need further assistance we recommend to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.

    https://devforum.okta.com/

     

    Community members help others by clicking Like or Select as Best on responses. Try it today.

    Expand Post
  • TusharV.35363 (Customer)

    Hi,

     

    Have you looked at getWithPopup function - if this fulfills your requirement. This function is in the core auth-js on which the okta-react is built, so there should be possiblility to call this for token renewal.

     

    Thanks

    Tushar Vatsa

    Expand Post
  • iliyazs.03457 (Customer)

    I was looking for something similar functionality to 'loginWithPopup' in Auth0.

     

This question is closed.
Loading
Open a new popup window for login credentials instead of a redirect for OIDC React SPA application