I tried on Azure AD authentication along with medium and
Github
Streamlit login with Azure AD Authentication and Git hub Streamlit_Azure_AD
The below are my environment and setup
1.Python : Python 3.11.9
2. Streamlit : 1.36.0
3. Python to perform Azure AD SSO Authentication: msal 1.29.0
4. Develop on Window Server 2022
I got Error as below. I have 2 questions.
1. This is my error after 2factor authentication toward Azure AD, How to resolve it?
2. Are there other approaches or python library apart from msal to do like my scenario?
Can you refer to link similar to my problems?
The below is my error.
Let me elaborate on what I did ,The Streamlit app run on Window Sever 2022
There were 2 steps.
- I asked to Azure administrator configure Azure client in the portal , As he informed me he told me that did it step by step completely
- I cloned this repos to change configuration values
secrets.toml
CLIENT_ID = "xxxxxxx"
CLIENT_SECRET = "yyyyyyyyy"
TENANT_ID = "zzzzzzzzzzzz"
SCOPE = ["User.Read"]
REDIRECT_URI = "https://xxxx.com:8501/"
- due to Https requirement, I had to add config.toml
[server]
sslCertFile = 'c:\\WebApp\\AWS-ChatKB\\cert\\certchain.pem'
sslKeyFile = 'c:\\WebApp\\AWS-ChatKB\\cert\\private. Key'
That was all, it went so welll
You can now view your Streamlit app in your browser.
Local URL: https://localhost:8501
Network URL: https://xxxx.com:8501
Thank you for any help.
Pongthorn