Databricks Apps (Streamlit) - How to Implement Proper Logout Functionality?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
9 hours ago
We have built a Databricks App using Streamlit and are looking for a way to implement a proper logout functionality.
Currently, we built Logout functionality where we can clear the Streamlit session state and client-side cookies. However, the Databricks authentication session remains active, and reopening the app automatically signs the user back in without prompting for authentication.
At the moment, the only way the user is logged out is when the Databricks access token/session expires.
- Is there a supported way to completely terminate the Databricks authentication session from within a Databricks App?
- Can we force users to re-authenticate after clicking Logout?
- Has anyone implemented a reliable logout mechanism for Streamlit-based Databricks Apps?
I would appreciate any guidance or best practices from the community.