In this article I will show you how to build robust authentication into Streamlit apps using the popular Next.js web framework, along with Auth0’s super-powerful identity and access SDK.
Whilst my solution can be used as is, the choice of technologies enables your Streamlit applications to be enterprise-ready and deployed in situations which often require integrated and advanced identity capabilities (for example, single sign-on, user management, API authentication, monitoring and extensibility, which can be configured independently in the Identity Provider service itself by a separate IT Admin or Security team).
Let me know how you get on, and please submit questions and issues in the GitHub repo (links in article).
If you’re looking for a hosted solution, check out Ploomber (I’m part of their team).
We developed a Streamlit + Auth0 integration. You only need to provide Auth0 config params and we’ll take of the rest, there’s no need to modify your Streamlit app code.