proactive-sharepoint-auth v0.1.0
proactive-sharepoint-auth
This package is used to get SharePoint authenticate cookie.
For use in task running file use as follow..
JavaScript: var proactive = require('proactive-sharepoint-auth'); var auth = new proactive.SharePoint.Authenticate("https://URL.sharepoint.com", "USERNAME@DOMAIN.onmicrosoft.com", "PASSWORD"); auth.authenticate().then(function(cookie) { //... run code here which uses cookie }).catch(function (reason) { console.log(reason); });
TypeScript var proactive = require('proactive-sharepoint-auth'); var auth = new proactive.SharePoint.Authenticate("https://URL.sharepoint.com", "USERNAME@DOMAIN.onmicrosoft.com", "PASSWORD"); auth.authenticate().then(cookie => { //... run code here which uses cookie }).catch(reason => { console.log(reason); });
8 years ago