How to sign out of application without signing out of dashboard

Hello, my users use Okta Dashboard to log onto my website. I would them to log out of the application when they click the logout link or close the browser. I don’t want them to logout of Okta completely, forcing them to authenticate again on the dashboard. Is there a way to log them out of my website only?

My application is using .net 8, using the Blazor Server framework. written in C#. Any examples would be very helpful.

Thanks,
George

Hi,

When you click on the application tile from your Okta dashboard, your user session from the dashboard is extended to your application. The inbuilt signOut functionality calls the logout and the revoke endpoints to terminate user sessions and to revoke the token. So when the application terminates the user session, the user is logged out too from the dashboard.

You can try to just revoke your access and id tokens so that the user is signed out from the app but the dashboard session is still active.

1 Like

Thank you for the response and pointing me in the right direction. How would I implement this using C# in a blazor application? Is there a git hub code sample I could use?

Thanks,
George