-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
on premise user credentials only works for 1 API call #52
Comments
Hi, I recommend you to try sp-request module. It handles everything inside and uses |
Hi, thanks for your response. I can confirm it works when using your
In addition, I think I found a bug in issue #47's implementation. On our companies sharepoint, everything works when I call the Our companies sharepoint instance is sharepoint online (user+pw authentication), the customer's sharepoint is on-premise/user/pw (so the |
Nope,
That's true, I will think about how to introduce it in
Yes, please. |
My 2 cents on the topic if you don't mind.
On one of the projects, I got to implement files download using Yet, I've never experienced the issue with network interfaces @patrickjane described before. |
Well, I have an existing implementation which uses the Of course, one alternative would be to do the authentication step via
What do you mean exactly? Are you using the |
I just meant that on a variety of machines and different auth strategies have never faces the issue and the necessity of providing |
Well, if you're having multiple network interfaces, on linux the interface to be used is determined by several factors, and you might end up on an interface which does not have a connection to the IP you're trying to connect. This can also change over time, so it works when initially deploying your software, but stops to work after a while when network configuration changes. This is why you're usually using the On the hosts of our customers, there is always multiple network interfaces, and routing/firewall setups which are out of our scope/control, so we are bound ( :D ) to use the Maybe for the time beeing, I will try to use |
To be honest, to little Linux experience on my end. Thank you for detailed case description. Btw, |
Thats good to know, so this is going to be the best solution for our case. BTW the other issue I was having (API calls fail if I use Of course, from what I wrote earlier, it perfectly makes sense to supply the bind parameter in both cases, otherwise you could end up with one of both calls unable to reach its remote host, however I don't understand how it can make a REST API call fail (but network-wise work perfectly). Just wanted to leave this here, in case anyone else comes across this, or someone wants to take a further look. Of course its not an issue anymore. |
By the way, if |
Hi, |
I have implemented the SP authentication as advised in your wiki (https://github.com/s-KaiNet/node-sp-auth/wiki/SharePoint-on-premise-user-credentials-authentication), and the login procedure as well as a following folder listing works well.
However, as soon as the first API call was made, no more API calls can be made and will be rejected with HTTP 401.
Example code to reproduce:
The text was updated successfully, but these errors were encountered: