Hi,
I’ve been trying to use the latest st.login() feature available from 1.42.0 version, but faced an issue.
everytime, I try to log-in with the Microsoft Intra Id, I get an error RequestHandler.set_cookie() got an unexpected keyword argument ‘httpOnly’
from tornado\web.py", line 756, in set_signed_cookie
to give more details
under secrets.toml,
[auth]
redirect_uri = “http://localhost:8501/oauth2callback” # set it under microsoft Entra - Application, Web URIs
cookie_secret = “xxx”
[auth.microsoft]
client_id = “xxx” # from MS Entra Application
client_secret = “xxx” # from MS Entra Application
server_metadata_url = “https://login.microsoftonline.com/{tanent_id}/v2.0/.well-known/openid-configuration” # from MS Entra Application
the app looks as simple as below.
if not st.experimental_user.is_logged_in:
if st.button(“Log in with Microsoft”):
st.login(“microsoft”)
else:
st.write(‘Hi’)