streamlit-server-state icon indicating copy to clipboard operation
streamlit-server-state copied to clipboard

st.experimental_user deprecated | Email Retrieving after Microsoft SSO Login

Open Riccardo-Corsiglia-Sprint-Reply opened this issue 8 months ago • 2 comments

Image When trying to retrieve the email of the current user (after an authentication with Microsoft Easy Auth) I get it but it appears this warning.

Will it be fixed before November 2025?

Until this is resolved, you could downgrade streamlit to streamlit<1.45.0 if you do not have any dependencies on newer streamlit features.

dasmy avatar Sep 23 '25 14:09 dasmy

Thank you, in the end I discovererd that streamlit has the st.context variable where you can find the user email:

username = st.context.headers.get("X-Ms-Client-Principal-Name")