Require a Sessioned login to your app.
session = st.login(cache_session = True, source = ['github','gitlab']) #if user revisits don't ask for login again. user = session.user_data
A rough data schema would look like this:
user: user_name: conic user_key: 90071992547409921 auth_platform: [github, gmail, streamlit_email_service] #where this key comes from. ip: 22.214.171.124
- I want to maintain a white_list of authorized users that is validated in app.
- I want different users to have personalized experiences. Maybe even keys to storing or retreiving information.
authorized_keys =  settings = dict(slider_1_location = 2) user_settings = json.load("user_settings.json") if user.user_key in authorized_keys: settings["slider_1_location"] = user_settings[user.user_key]["slider_1_location"]