spgo icon indicating copy to clipboard operation
spgo copied to clipboard

spgo NTLM  invalid user credentials

Open onlyawt opened this issue 3 years ago • 3 comments

Note: for support questions, please use stackoverflow and tag the post with #spgo.

  • I'm submitting a ... 0

I´m having some trouble when trying to retrieve a remote folder from sharepoint so that I can use it in vs code. Configuring the workspace went fine, but when I use command "SPGo:Retrieve folder", it asks me for sharepoint username and password. apparently, both inputs are correct, but it keeps showing me the error "Invalid user credentials. Please reset your credentials via the command menu and try again". Here are some information I think might be useful/necessary for solving this problem: (feel free to ask for more info if needed)

  • [ ] bug report

  • [ ] feature request

  • What is the current behavior?

  • If the current behavior is a bug, please

    • Your spgo.json file (You may replace corporate PII with "xxx")
    • { "sourceDirectory": "src", "sharePointSiteUrl": "https://**..", "workspaceRoot": "c:\sp", "publishWorkspaceOptions": { "destinationFolder": "/", "globPattern": "c:\sp\src\**\.", "localRoot": "c:\sp\src" }, "publishingScope": "Major", "authenticationType": "NTLM" }
    • Steps to reproduce
  • What is the expected behavior?

  • Please tell us about your environment: SPGO 1.7.2 SharePoint 2019 Server

    • OS and Version
    • SharePoint Location (Online vs. On Premise)
    • Authentication Type (e.g. Digest, NTFS, ADFS)
      NTFS

onlyawt avatar May 31 '21 08:05 onlyawt

This is definitely broken. I have to rollback to pre 1.7.2 just to publish

rjhadley avatar Jun 15 '21 16:06 rjhadley

Hello @onlyawt, @rjhadley

VSCode recently made a change (again!) to the internal request proxy. This specifically affects NTLM Auth.

can you review this issue and see if the proxy setting change fixes this for you?

chrishasz avatar Jun 20 '21 06:06 chrishasz

Thank you! @chrishasz , confirmed this workaround fixes it.

rjhadley avatar Jun 21 '21 11:06 rjhadley