Been trying to access SharePoint list and download the data as a CSV using Python for a use case. Once we arrive at the authentication step, we get the error
"('Error authenticating against Office 365. Error from Office 365:', 'AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials.')"
from config import config
from shareplum import Site
from shareplum import Office365
from shareplum.site import Version
from requests_ntlm import HttpNtlmAuth
from office365.runtime.auth.authentication_context import AuthenticationContext
from office365.sharepoint.client_context import ClientContext
base_path = config.config['sp_base_path']
username = config.config['sp_user']
password = config.config['sp_password']
##Approach 1
# cred = HttpNtlmAuth('myusername@domain.com', 'Password')
# site = Site('https://xxxxxx.sharepoint.com/logs/Lists/Logs%20Entries/All%20Items.aspx', auth=cred)
##Approach 2
# authcookie = Office365(base_path, username=username, password=password).GetCookies()
# site = Site('https://xxxxxx.sharepoint.com/logs/Lists' ,version=Version.v365, authcookie=authcookie)
Both Approach 1 and Approach 2 throws the same error.