Comments (4)
So it's requests to the same list getting items and once it works then report a user has no access?
What if to send more requests to this same endpoint, let's say each 5-10 seconds during 1-5 minutes? What will the statistics?
What it to take FedAuth cookie and try multiple requests in Postman, for example?
The only thing I have in mind at the moment is a multiple WFE and a wrong ADFS configuration, and that the first request ended up reaching right WFE, but the second another WFE, maybe.
from sp-rest-proxy.
In my main application I am seeing some of the requests intermittently returning 403, so in this test app yes, its the same request fetching items from the list. There is no specific sequence on when things fail or succeed ( or at-least I am not able to find that out)
I tried to fire 20 request manually spread over roughly 5-10 seconds each, 8 succeeded & 12 failed.
For the production setup (code deployed on SharePoint site) tried to use the FedAuth cookie in postman but I am getting a 403 error consistently. I suspect that might be configuration issue in postman, it works intermittently on chrome.
Appreciate there might be multiple issues at play here, but to break it down I am trying to use a simple app to make multiple requests in a dev environment first and understand why things are failing.
Couple of questions
-
How can I see the FedAuth token for sp-rest-proxy, I tied using logLevel: 5 & authConfigSettings: {saveConfigOnDisk:true} but couldn't see more details ?
-
For the adfsUrl setting is it usual to have a trailing "ls" ? Any way of testing this URL ?
Thanks
from sp-rest-proxy.
FedAuth cookie can be taken from browser dev tools.
Or with the same creds flow as auth library does, using this helper repo code https://github.com/koltyakov/node-sp-auth-troubleshoot
For ADFS flow, I can recommend checking this material https://github.com/s-KaiNet/node-sp-auth/wiki/ADFS-user-credentials-authentication
from sp-rest-proxy.
Thanks !
-
Postman - I managed to successfully send 30+ request without any failures. When the requests are sent from browser I am still getting intermittent failures. Even if there are multiple WFE, it seems very unlikely that all 30 postman runner requests would be successful.
-
ASFD setup is working fine and validated using the node-sp-auth-troubleshoot (love the multiple configuration file feature). Also validated that FedAuth cookie is being set and passed properly by sp-rest-proxy.
On the server end, below snapshot shows the success and failure trace.
This clearly is an authorisation issue at sever end and not related to sp-rest-proxy so closing this issue. If you have suggestion on potential causes (especially point 1) , that would be great.
Thanks for your help. BR
from sp-rest-proxy.
Related Issues (20)
- OndemandCredentials Electron Mac HOT 6
- Can this react app be deployed as a web app on to a windows server so that users can access the app outside of the server ? HOT 6
- Host "sp-rest-proxy" as an independent web-app on Azure or pass authentication in configs to be used in CI/CD pipeline HOT 1
- Can this proxy be used when the host SP environment (on prem) has a "strict-origin-when-cross-origin" HTTP referrer policy? HOT 3
- sharepoint MFA bypass HOT 2
- [Feature query] Can the proxy be made to connect to multiple sites? HOT 1
- sp-rest-proxy with sharepointplus HOT 10
- POST request fails when calling the proxy (adding extra path to sharepoint request) HOT 5
- Proxy Error: Cannot read properties of null (reading 'toString') (see more in sp-rest-proxy console) HOT 4
- Version 3.3.4 broken for OnpremiseUserCredentials HOT 5
- Cannot read properties of null (reading 'toString') HOT 3
- On Demand - cannot read properties of null / childprocess.spawnsync EONENT Error HOT 2
- Proxy approach for Azure Active Directory HOT 2
- Typescript import HOT 1
- Setting siteUrl programatically HOT 4
- sp-rest-proxy does not work with Node 18.16.0 (current LTS) HOT 5
- Thank you HOT 1
- Docker HOT 2
- JSOM using sp-rest-proxy / clarification needed HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sp-rest-proxy.