You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use the package to login on my companies tenant on the cloud Sharepoint I got the error AADSTS90023: Invalid STS request. If I repeat the login request with an dummy password like topsecret I got the message: AADSTS50126: Error validating credentials due to invalid username or password.
I use version 2.3.1 of the Office365-REST-Python-Client and Python version 3.8.1.
I debug the module code and I found out that reserved XML characters in the password are not escaped before it build into the XML data send to request an access token.
If I use the package to login on my companies tenant on the cloud Sharepoint I got the error AADSTS90023: Invalid STS request. If I repeat the login request with an dummy password like topsecret I got the message: AADSTS50126: Error validating credentials due to invalid username or password.
I use version 2.3.1 of the Office365-REST-Python-Client and Python version 3.8.1.
My test code
Reason
I debug the module code and I found out that reserved XML characters in the password are not escaped before it build into the XML data send to request an access token.
Payload send to https://login.microsoftonline.com/extSTS.srf in function
_acquire_service_token()
I would expected
Workaround
Escape username/password before call
with_credentials()
. I find out that the functionxml_escape(s_val)
only escapes four of five characters.Solution
Make two fixes in the file saml_token_provider.py:
The text was updated successfully, but these errors were encountered: