mkhorasani / Streamlit-Authenticator

A secure authentication module to validate user credentials in a Streamlit application.
Apache License 2.0
1.37k stars 229 forks source link

Empty credentials for registration only apps #125

Open lambda-science opened 5 months ago

lambda-science commented 5 months ago

Hello, thank you very much for this fantastic package. It helps a lot put streamlit apps into "semi-production". I want to ask, is it possible do to an initial empty config.yaml like:

cookie:
  expiry_days: 1
  key: some_signature_key
  name: streamlit-pythia-auth
preauthorized:
  emails: 
    - aa@bb.cc
    - aa2@bb.cc
    - aa3@bb.cc

So a yaml that doesn't contain initial credentials key but only preauthorized email so that we can push it to our private repo without pushing initial "admin account" hash ? Basically I want to push my auth yaml file to my repo for deploymenent with a restricted list of user that will use it, but I don't want to put an initial account inside it.

danweb80 commented 2 weeks ago

Hello, really great component!

I think would it looks even better if we could start the installlation of the app with a blank/without credentials config.yaml file. At the first authenticate call let to a ownner/admin credentials register. This would let us to get since the first access a hashed password to all users.

Another great feature would add a role field (admin/ to the credentials letting us to create "permitions" by a role