๐Ÿ” Google Auth & Email login with Auth0 in Streamlit video & app

:cherry_blossom: Hello Streamliters! I know you dream of adding a Google or Email login page to your app. Now you can do it for example with Auth0

With the latest Streamlit 1.42 release comes the long-awaited Native OpenID Connect (OIDC) Authentication in Streamlit feature.

It makes it very easy to add a login button connected to any Identity Provider providing OIDC like Google/Firebase, Microsoft, Auth0/Okta, Keycloak or Supabase.

A lot of DataFans on my Youtube channel have been asking for a Streamlit Auth0 login video. I wasnโ€™t very comfortable with Auth0, so I made an app to test it.

demo

And made a video about it:

Auth0 + Streamlit App (up until end of March 2025): https://andfanilo-saas-test.streamlit.app
Github Repo, if you canโ€™t wait for the video: https://github.com/andfanilo/streamlit-auth0-test

Happy Streamlitinโ€™ :grin:

9 Likes

It worked!!

4 Likes

Big Thank You!
Dreamed about this feature for a long time

I am currently trying to make this login function from the eu, I am getting this error -

File "/mount/src/darkknightrises/App.py", line 6, in <module>
    if not st.experimental_user.is_logged_in:
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/user_info.py", line 492, in __getattr__
    raise AttributeError(f'st.experimental_user has no attribute "{key}".')

I am not sure where I am going wrong

Iโ€™m also seeing the same error that experimental_user has no attribute โ€œ{key}โ€.

Iโ€™m testing with Streamlit 1.44.1

Does this feature only work in the Streamlit Community Cloud, or can it work locally too?

I was able to get it to work and then streamlit did another update. Everything crashed.

can u explain the issue i got it run jus as showed in the video