node-sp-auth icon indicating copy to clipboard operation
node-sp-auth copied to clipboard

Getting Error- Unable to resolve namespace authentication type while connecting to online sharepoint site

Open sanjeev2315 opened this issue 5 years ago • 2 comments

I am trying to connect to sharepoint site of my organization to download docs, I am passing username and password of my own and getting error saying-

Unable to resolve namespace authentication type.

Could someone please redirect me in correct direction to get it resolved

sanjeev2315 avatar Jan 18 '20 16:01 sanjeev2315

It works for me. I have something like that : const sharepointAuth = () => spauth.getAuth(SHAREPOINT_PATRIMOINE_URI, { username: process.env.SHAREPOINT_USERNAME, password: process.env.SHAREPOINT_PASSWORD, domain: process.env.SHAREPOINT_DOMAIN })

tibetoine avatar Mar 02 '20 13:03 tibetoine

Some SharePoint sites seem to require domain and some do not. Fixed this in one instance by giving username (in the format of o365 email), password and correct domain.

mikkosiika avatar Jul 07 '20 13:07 mikkosiika