Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication Issues: Token request failed. Invalid server response #77

Open
XariZaru opened this issue Dec 20, 2023 · 0 comments
Open

Comments

@XariZaru
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant