[BUG] InResponseTo not valid for all requests #683
Replies: 2 comments
-
You didn't care to define what was your previous version. Lets assume your previous version was https://github.com/sign-in-canada/passport-saml/tree/275f15488823407043208677caf3dea8fee9903a (current HEAD of And lets assume that you are merging Since you have modified (based on this commit sign-in-canada@e4fe1fc ... which btw. doesn't make any sense) also multisamlstrategy (which is pretty much the only place which recreates
passport-saml/src/passport-saml/multiSamlStrategy.ts Lines 19 to 22 in 0d983aa
Wild guess:
I.e. code flow would/could be like this (links point to current HEAD of passport-saml/src/passport-saml/multiSamlStrategy.ts Lines 35 to 36 in 6ba76ba passport-saml/src/node-saml/saml.ts Line 160 in 6ba76ba |
Beta Was this translation helpful? Give feedback.
-
I'm in agreement with @srd90 here. I don't think we have enough information to say what exactly the problem is. Moving to discussion. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone
We are getting the InResponseTo not valid error for each request since the CacheProvider is creating a new instance for each call (our assumption): getting empty keys when we call the get method.
Expected behavior
The previous versions were using one instance of the CacheProvider (from constructor) and keys are managed correctly (save, get and delete).
Environment
Node.js version: 14
passport-saml version: 3.2.1
Beta Was this translation helpful? Give feedback.
All reactions