Hey @brdemorin,
thanks for your feedback on auth! You are correct, today we don’t have a built-in auth solution directly in Streamlit, which mostly has historical reasons. We’re working on that at the moment (specifically adding SSO, see this GitHub issue), but unfortunately, the product manager working on this left a few weeks ago, so I don’t have a concrete timeline yet.
If you want to add auth to your app today, the best workarounds are:
- Build a simple authentication yourself, e.g. by just querying for a password and comparing against that in Python code.
- Use a custom component but I see you already tried a few and they didn’t work for you. Unfortunately, I never used these components myself, so can’t help too much, but maybe someone else here can.
- Handle authentication outside of the app. Again, unfortunately I’m not an expert on this but I found a few examples here and here, and I’m sure there are a bunch more examples on the forum. We know about very sophisticated deployment systems that some companies built, so it’s definitely possible (but I know it’s not very convenient today
).
- Deploy on a platform with built-in auth. E.g. Streamlit Community Cloud offers 1 private app per account that you can share with users via email, I think Huggingface Spaces allows you to have private apps as well, and we also have a paid offering within Snowflake.
Sorry that I can’t provide you with a better answer (yet) but please know that we’re on it! You’re also very welcome to leave comments and upvotes on the GitHub issue I linked above.