Question about SSO

I believe theres something wrong with my app; either in the code or in my Okta configuration…

When a user logs into the Okta End-User Dashboard, and then subsequently logs into my okta protected app, my app should redirect to okta to check if the user has already authenticated, and okta should redirect back to my app which will then create a session. This works fine.

My app uses sessionStorage to store its tokens though so when I close the browser and reopen it, I expect it to do the same process… That is, go to okta and redirect back because Im already logged in. But its not doing that… it asks me to login again! If I access the End-User Dashboard in that same browser session, it shows im already logged in? How could I possibly be logged into the End-User Dashboard but forced to login to my app again?

Hi,

Can you try changing your storage to localStorage GitHub - okta/okta-auth-js: The official js wrapper around Okta's auth API

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.