liveBook · Manning

Openid connect

As explained in Build Python Web Apps with Streamlit

OpenID Connect is an authentication protocol built on OAuth 2.0 that lets applications verify user identity through an identity provider.

OpenID Connect (OIDC) is an authentication protocol built on OAuth 2.0. It lets an application verify a user's identity through an identity provider instead of managing passwords and password hashes itself. section 8.4.3

A Streamlit app can send users to providers such as Google, Microsoft, Okta, or Auth0. Configure the provider's client ID, secret, and metadata in st.secrets, then start sign-in with st.login. section 8.4.3

After authentication, the app can:

  • Check whether a user is signed in with st.user.is_logged_in. section 8.4.3
  • Read identity details such as the user's email through st.user.email. section 8.4.3
  • End the session with st.logout. section 8.4.3

How Build Python Web Apps with Streamlit covers it

How deep it goes
Explains the provider setup and Streamlit calls, but stops short of protocol internals.
Examples
Uses Google, Microsoft, Okta, or Auth0 with Streamlit login, user inspection, and logout actions.
What it assumes
Assumes OAuth 2.0 terminology and an identity-provider account with client credentials.
What you can do after
Operate/configure Streamlit authentication with st.login, st.user, st.logout, and provider credentials in st.secrets.
How it connects
Connects OAuth 2.0 with authentication, identity providers, client credentials, and user sessions.

Also explained in

Compare how 13 books explain openid connect →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build Python Web Apps with Streamlit. The section links point to the parts of the book it draws on.