Coder Social home page Coder Social logo

python-download-sharepoint-file's Introduction

python-download-sharepoint-file

python-download-sharepoint-file's People

Contributors

iamlu-coding avatar luisflores189544 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python-download-sharepoint-file's Issues

Error : authentication failed with error AADSTS50005

I am getting the following error while trying to download a file using sharepy.Kindly help

sharepy.errors.AuthError: Authentication Failure: AADSTS50005: User tried to log in to a device from a platform (Unknown) that's currently not supported through Conditional Access policy. Supported device platforms are: iOS, Android, Mac, and Windows flavors

'AADSTS50126: Error validating credentials due to invalid username or password.')

I'm trying to dl an excel file from my organization's sharepoint
I used the files from here and I'm getting this error:

Traceback (most recent call last):
File "C:\Users\tdiacon\Pyproj\PySharePoint\project.py", line 10, in
file = SharePoint().download_file(file_name, folder_name)
File "C:\Users\tdiacon\Pyproj\PySharePoint\sharepoint.py", line 37, in download_file
self._folder = self.connect_folder(folder_name)
File "C:\Users\tdiacon\Pyproj\PySharePoint\sharepoint.py", line 29, in connect_folder
self.auth_site = self.auth()
File "C:\Users\tdiacon\Pyproj\PySharePoint\sharepoint.py", line 23, in auth
self.authcookie = Office365(SHAREPOINT_URL, username=USERNAME, password=PASSWORD).GetCookies()
File "C:\Users\tdiacon\Pyproj\PySharePoint\venv\lib\site-packages\shareplum\office365.py", line 88, in get_cookies
sectoken = self.get_security_token(self.username, self.password)
File "C:\Users\tdiacon\Pyproj\PySharePoint\venv\lib\site-packages\shareplum\office365.py", line 80, in get_security_token
raise Exception('Error authenticating against Office 365. Error from Office 365:', message[0].text)
Exception: ('Error authenticating against Office 365. Error from Office 365:', 'AADSTS50126: Error validating credentials due to invalid username or password.')

Any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.