Skip to content

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

@XariZaru

Description

@XariZaru

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions