Some background. My company uses SSO for all their Microsoft products. I am trying to access their sharepoint site for web scraping purposes.
import sharepy
base_url = "https://[company].sharepoint.com"
s = sharepy.connect(base_url,
username="username@[company].org",
password="password")
The issue is after supply the password and username, I get the following error
AuthError: Token request failed. Invalid server response
I did a sanity check, so I signed out of my laptop and signed back in using my Windows authentication and it was successful. That means the username and password I am supplying for the sharepoint connection should be correct. What are some possible causes for this issue?