You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have not found ANY URL which will present the [email protected] with any valid data, however I can use a user associated with the tenant with no problems.
The [email protected] has no problems logging in via the GUI, but apparently has no ability to authenticate via node-sp-auth.
This is the ONLY thing which has ever been returned to the TestUser:
Unhandled rejection Error: No XML to parse! at new XmlDocument (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\xmldoc\lib\xmldoc.js:192:11) at config_1.request.post.then.xmlResponse (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\node-sp-auth\lib\src\utils\AdfsHelper.js:28:23) at tryCatcher (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\promise.js:517:31) at Promise._settlePromise (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\promise.js:574:18) at Promise._settlePromise0 (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\promise.js:619:10) at Promise._settlePromises (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\promise.js:699:18) at _drainQueueStep (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\async.js:138:12) at _drainQueue (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\async.js:131:9) at Async._drainQueues (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\async.js:147:5) at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\async.js:17:14) at runCallback (timers.js:705:18) at tryOnImmediate (timers.js:676:5) at processImmediate (timers.js:658:5)
At this point I am expecting to be told that there is no way for an external / guest user to use node-sp-auth, that the only way to do this will be to create an account within our own tenant.
Thanks for your time!
The text was updated successfully, but these errors were encountered:
It looks like you're correct that external users don't play nicely with node-sp-auth. As far as I remember there was one another similar request which I was unable to resolve with an external user.
I'm closing the issue because as of now there are no ways to resolve it.
So I have an external / guest user whom I created an Outlook.com account for and then shared a subsite with.
User: [email protected]
url: https://testTenant.sharepoint.com/sites/test
I have not found ANY URL which will present the [email protected] with any valid data, however I can use a user associated with the tenant with no problems.
The [email protected] has no problems logging in via the GUI, but apparently has no ability to authenticate via node-sp-auth.
`const spauth = require("node-sp-auth")
const request = require("request-promise")
var creds = {
username: '[email protected]',
password: 'password',
online: true
}
var url = "https://testTenant.sharepoint.com/sites/test"
try{
spauth
.getAuth(url, creds)
.then(data => {
console.log("data")
console.log(data)
var headers = data.headers;
headers['Accept'] = 'application/json;odata=verbose';
}
catch(err){
console.log("err")
console.log(err)
}`
This is the ONLY thing which has ever been returned to the TestUser:
Unhandled rejection Error: No XML to parse! at new XmlDocument (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\xmldoc\lib\xmldoc.js:192:11) at config_1.request.post.then.xmlResponse (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\node-sp-auth\lib\src\utils\AdfsHelper.js:28:23) at tryCatcher (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\promise.js:517:31) at Promise._settlePromise (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\promise.js:574:18) at Promise._settlePromise0 (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\promise.js:619:10) at Promise._settlePromises (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\promise.js:699:18) at _drainQueueStep (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\async.js:138:12) at _drainQueue (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\async.js:131:9) at Async._drainQueues (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\async.js:147:5) at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\jv_65727\OneDrive\SRC\node.js\node-sp-auth-O365\node_modules\bluebird\js\release\async.js:17:14) at runCallback (timers.js:705:18) at tryOnImmediate (timers.js:676:5) at processImmediate (timers.js:658:5)
At this point I am expecting to be told that there is no way for an external / guest user to use node-sp-auth, that the only way to do this will be to create an account within our own tenant.
Thanks for your time!
The text was updated successfully, but these errors were encountered: