Code Monkey home page Code Monkey logo

Comments (4)

koltyakov avatar koltyakov commented on August 25, 2024

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.

tarundhillon avatar tarundhillon commented on August 25, 2024

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

  1. 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 ?

  2. For the adfsUrl setting is it usual to have a trailing "ls" ? Any way of testing this URL ?

Thanks

from sp-rest-proxy.

koltyakov avatar koltyakov commented on August 25, 2024

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.

tarundhillon avatar tarundhillon commented on August 25, 2024

Thanks !

  1. 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.

  2. 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.

image

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.