Hi,
I am excited to use streamlit. I have one issue with one page application. How can I set up multi page in streamlit so that I can use my first page for login and authentication?
asehmi
April 27, 2021, 12:05pm
2
Hi,
Try these resources:
Multi-Page
Here’s the simplest top level for a multi-page app (I use all the time). You will of course need to implement app1.py and app2.py yourself. If app1.main() or app2.main() take arguments, then add them as comma separated elements in the pages spec, e.g. [app1.main, 'arg 1', 'arg 2'].
import streamlit as st
import app1, app2
def main():
pages = {
'App 1': [app1.main], # APP 1
'App 2': [app2.main], # APP 2
}
choice = st.sidebar.radio('What do you want to do?', tu…
https://discuss.streamlit.io/search?q=multi-page
Auth
Hi - I’ve been doing a fair amount of investigation on the use of components as a way to integrate Auth0 authentication into my Streamlit apps (I need this for work and our clients). It wasn’t until components allowed CORS settings recently (>=0.74) that I started having some success (i.e. making it simple). I spent some time over the past week completing my experiments and am happy to share the implementation and detailed documentation. A shout out to @tim @randyzwitch @andfanilo @ash2shukla fo…