mkhorasani / Streamlit-Authenticator

A secure authentication module to manage user access in a Streamlit application.
Other
1.67k stars 260 forks source link

Using Streamlit Authenticator with secrets.toml file #242

Closed tylncck closed 1 week ago

tylncck commented 1 week ago

Hello, I'm new to this Streamlit Authenticator package and appreciate all the effort put into developing it. After successfully implementing my app's login and logout functions, I'm currently working on the reset password and user information parts. My app is deployed to Streamlit Community Cloud and I'm using secret.toml file in my local repo and streamlit secrets in the cloud. As far as I understand, the reset password and update user information widgets works with a config.yaml file. I wonder how I can use these features with secret.toml file or alternatively (if I use the config.yaml file) how I can save the content of yaml file to streamlit secrets in Community Cloud. Once again, thanks for this awesome package and thanks in advance for the answers.

mkhorasani commented 1 week ago

Hi @tylncck, thank you for reaching out, but currently there is no way to programmatically write to Streamlit secrets when deployed on cloud. I recommend you use a database as shown in this video.