An identity provider is a service that verifies a user’s identity and supplies identity information to an application. With OpenID Connect (OIDC), a Streamlit app can send users to providers such as Google, Microsoft, Okta, or Auth0 instead of managing passwords and password hashes itself. section 8.4.3
A typical identity-provider setup requires:
- Creating an account with an OIDC-supporting provider. section 8.4.3
- Storing the client ID, client secret, and related metadata in st.secrets. section 8.4.3
- Calling st.login to redirect users to the provider, then reading login status or email through st.user. section 8.4.3
- Calling st.logout to end the session and return users to the app. section 8.4.3
Google sign-in
A user selects Log in, is redirected to Google, and returns authenticated to the app. The app can check st.user.is_logged_in and display st.user.email without storing the user’s password. section 8.4.3











