mkhorasani / Streamlit-Authenticator

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

Feature - Only allow users within a certain domain to create an account #43

Closed abdulrabbani00 closed 5 months ago

abdulrabbani00 commented 1 year ago

Small lift here. But it would be great if we could define who can create a user account. This would allow users to make a streamlit application public, and then allow everyone from their organization to create individual accounts.

Also happy to integrate this if you are willing to accept it :D

mkhorasani commented 1 year ago

Hi @abdulrabbani00, thank you for the efforts, please give me some time to peruse these features before making any merges. Thank you!

elcronos commented 1 year ago

I think this would be great

abdulrabbani00 commented 1 year ago

There is a PR open for this - https://github.com/mkhorasani/Streamlit-Authenticator/pull/44

Feel free to use my fork for this functionality today and a faster startup

mkhorasani commented 5 months ago

Hi all, this feature has been implemented in release v0.3.1. You can now pass a domains list to the register_user widget that specifies the permissible domains that an email must belong to.