Summary: Microsoft Entra ID (Azure AD) authentication fails immediately upon clicking the login button on Streamlit Cloud (v1.52.0).
The Core Issue:
-
Localhost:
WORKING (Login proceeds and succeeds). -
Streamlit Cloud:
FAILS immediately when the login button is clicked. -
Error: The app crashes before sending the request to the Azure authentication server.
-
Code/Config: No configuration changes were made. The issue appeared suddenly this week.
Specific Error Message: 400: 'NoneType' object does not support item assignment (A Python error indicating a critical configuration variable is missing or None).
Technical Details:
-
Streamlit Version: 1.52.0
-
Python Version: 3.13
-
App Type: Web App (Confidential Client, uses Client Secret).
-
Goal: User authentication via Microsoft.
Key Questions for the Community:
-
Since Localhost works, is it possible that a recent change in Streamlit Cloud (v1.52.0) has broken how essential secrets (e.g.,
Client ID,Client Secret) are loaded fromsecrets.tomlduring the initial login request phase? -
What environment checks should I perform to debug why critical configuration variables are being read as
Noneonly on the Cloud?
Thank you!