Python Forum
Authentication error when accessing Microsoft SharePoint
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Authentication error when accessing Microsoft SharePoint
#4
Hi

OK, then i would suggest before you carry on with python you install postman - link is here - its basically a "REST" client if you haven't used but there is the ability in there to use the NTLM protocol so at least with your user / domain / password combo you can see if you can get it to work form there, this would at least prove it is able to accept you requests. NTLM tbh is pants! it takes 3 request response combinations to authenticate
1. request to ntlm (sharepoint in this case)
2. if authenticated then an authentication "token" is returned in the http headers
3. request is sent with this token and whatever the request body is asking sharepoint to do - fetch docs etc


You can set up the same in SOAPUI and see the aforementoned transations, but I prefer Postman
Once you have established that working then apply the similar to python, especially if the packages you are using are either complex or you can't ascertain what they are doing, it might give some pointers as to where the error is.

If you need additional help with the postman set up am happy to help
Regards
-------- *
“Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.”
Reply


Messages In This Thread
RE: Authentication error when accessing Microsoft SharePoint - by nuffink - Jun-10-2020, 07:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to get all items in SharePoint recycle bin by using sharepy library in Python? QuangHuynh 2 321 Apr-10-2024, 03:09 PM
Last Post: SandraYokum
  Updating sharepoint excel file odd results cubangt 1 825 Nov-03-2023, 05:13 PM
Last Post: noisefloor
  Trying to access excel file on our sharepoint server but getting errors cubangt 0 807 Feb-16-2023, 08:11 PM
Last Post: cubangt
  Microsoft text phone verifying account cito 2 981 Jul-21-2022, 12:16 PM
Last Post: cito
  REST API x.509 authentication crossover 1 2,442 Feb-15-2022, 12:21 AM
Last Post: snippsat
  error : "Microsoft Visual C++ 14.0 is required. " Even its installed Barak 4 4,002 Oct-13-2021, 10:39 PM
Last Post: Underscore
  SharePoint Online/365 authentication using .cer file mart79 0 2,026 Nov-08-2020, 03:31 PM
Last Post: mart79
  List index out of range error while accessing 2 lists in python K11 2 2,104 Sep-29-2020, 05:24 AM
Last Post: K11
  Creating Excel files compatible with microsoft access vkallavi 0 1,587 Sep-17-2020, 06:57 PM
Last Post: vkallavi
  Trying to install Pyquil, says I need Microsoft Visual C++ Groucho 10 4,913 Feb-18-2020, 05:46 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020