Streamlit authentication with Azure AD

I have developed the chatbot in streamlit. I also have few more functionalities which use can select from the sidebar options. Everything is in local now and planning to deploy it in ec2.

  • How to add azure authentication in streamlit app? Basically, whenever users open the link, they should be authenticated via Microsoft and then only get the access of app.
  • I have also registered the app on azure ad with redirect url as localhost:8501 and selected the “ID tokens” from Implicit grant and hybrid flows option.

I’m also interested in this. Anything similar to this? OAuth - Chainlit

Have you tried looking into the streamlit-msal package? I use it for Azure authentication in my app and it works well.

I have tried the streamlit-msal package, in my case when configuring all options, the Azure popup appears but after successful login the function still returns None.

1 Like

Documentation in this page

says AAD authentication is not supported by Streamlit yet.

Has the scenario changed?

You can try GitHub - dnplus/streamlit-oauth: Simple OAuth Component for Streamlit App

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.