Integrate corporate SSO into streamlit

Hi team, I have two questions related to implementation of authentication in streamlit.

  1. Does anyone have pointers on how we can integrate the corporate SSO into a Streamlit application? our company is using a custom SSO system.
  2. Let’s say there’s a way to integrate the corporate SSO. Once user logs in successfully, secure http-only cookies will be set in the browser. Is there a way inside streamlit to retrieve those http-only cookies to make downstream calls?

Thank you,

There are a few custom components that have been written for authentication within Streamlit. Additionally, the native authentication support is currently under development.

Check out about six or seven items down this list: Streamlit Components - Community Tracker

Additionally, Streamlit provides read-only access to cookies with st.context already.

1 Like

st.context worked for me. Thank you!

@mathcatsand is there any existing example on how people integrate corporate SSO with streamlit?

I don’t have anything specific to point you toward, so I’d recommend searching the forum, gallery, or a general Google search. Since we’re adding native support for authentication soon, we should have more information in documentation at the same time. :slight_smile: