node-sp-auth
node-sp-auth copied to clipboard
Getting Error- Unable to resolve namespace authentication type while connecting to online sharepoint site
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
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 })
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.