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.