How can I authorise a user?

Hi @Rajesh_Darak,

Thank you for sharing with the Streamlit community!

Our team is working on a feature to access a user object, but it will not be available until potentially Q3 or Q4 of this year. As a workaround, some Streamlit users show a selectbox with all usernames, allow end-users to select their username, and load user-specific content accordingly; however, this solution is not ideal if the data is sensitive.

If you’re using Streamlit Sharing you can implement secret management.

Viewer authentication is a feature we support through Streamlit for Teams. If your organization is interested in using Streamlit for Teams, you can sign up for our beta here.

You might also find this thread helpful.

Best,

Caroline