<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
0D50Z00008G7UnOSAVOkta Classic EngineSingle Sign-OnAnswered2024-04-30T09:18:25.000Z2016-08-25T05:54:54.000Z2020-10-21T18:46:32.000Z
Logout redirect URL
Hi,

I want that after hitting logout from my application which is integrated with Okta after killing all the sessions users should be redirected to the application specific Okta login page which is thrown for authentication in case of SP initiated call rather than the default Okta dashboard login page.

This is because if the user again wants to login again he should provide the credentials on the page on which he is redirected after logout and land on the application directly rather than landing on the Okta dashboard.

So is there any way to configure the logout URL to achieve the same on which someone form this community can provide me some guidance?

Regards,

Tanay

  • j5v7c (j5v7c)

    Hi Tanay

    Thanks for posting your question to the Okta Community!

    To acheivie this configuration the logout URL has to be setup in the application on the SP side,

    the URL for this can be taken from the App in the Okta dashboard and after that if the users do not have any other active session they will be redirected to the login page.
    Expand Post
  • This is a good question in fact, as currently the supposed logout flow is that the user gets redirected back to the application after successful logout. This may work perfectly for many, but definitely not for the applications that have 100% of their stuff hidden behind the login screen.

     

    So the current (working but cumbersome) flow looks like this:

    1) user presses logout

    2) gets redirected to OKTA/logout endpoint

    3) gets redirected back to the APP (typically the SPA's root path) which in turn takes time to load and then realizes the user is not logged in, and then the user once again ->

    4) gets redirected to OKTA, but now it's the login screen

     

    All of the above could be simplified to

    1) user presses logout

    2) gets redirected to OKTA/logout endpoint

    3) gets redirected to OKTA/login screen

     

    Is there a known way to achieve that? Anybody?

    Expand Post
This question is closed.
Loading
Logout redirect URL