Skip to content
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

Error: Invalid signature #324

Closed
huineng opened this issue Dec 4, 2018 · 10 comments · Fixed by #344
Closed

Error: Invalid signature #324

huineng opened this issue Dec 4, 2018 · 10 comments · Fixed by #344

Comments

@huineng
Copy link

huineng commented Dec 4, 2018

Could you please tell me what breaking change you have introduced since i've upgraded to 1.0.0 from 0.35.0 ?

this package was running correctly since several months until this release update.
i have no clue what has changes or what caused this

thanks

Error: Invalid signature
    at /home/app/node_modules/passport-saml/lib/passport-saml/saml.js:609:15
    at _fulfilled (/home/app/node_modules/q/q.js:854:54)
    at self.promiseDispatch.done (/home/app/node_modules/q/q.js:883:30)
    at Promise.promise.promiseDispatch (/home/app/node_modules/q/q.js:816:13)
    at /home/app/node_modules/q/q.js:624:44
    at runSingle (/home/app/node_modules/q/q.js:137:13)
    at flush (/home/app/node_modules/q/q.js:125:13)
    at process._tickCallback (internal/process/next_tick.js:176:11)
@huineng
Copy link
Author

huineng commented Dec 4, 2018

I guess the reason is the crypto-xml upgrade see node-saml/xml-crypto#158 and node-saml/xml-crypto#164

@LoneRifle
Copy link
Contributor

Hi, passive maintainer for xml-crypto here. Would you be able to isolate a test case involving only xml-crypto for me to look further into? Thanks!

@huineng
Copy link
Author

huineng commented Jan 15, 2019

got it solved node-saml/xml-crypto#167

@phof
Copy link

phof commented Jan 23, 2019

I had the same issue after upgrading to passport-saml 1.0.0; downgrading to xml-crypto 0.10.1 solved it.

"resolutions": {
  "passport-saml/xml-crypto": "0.10.1"
}

cc/ @huineng @LoneRifle @markstos FYI

@christiaanwesterbeek
Copy link

I had the same issue with passport-saml 1.0.0 and I can confirm that adding this to package.json fixed the problem.

"resolutions": {
  "passport-saml/xml-crypto": "0.10.1"
}

And the following does not

"resolutions": {
  "passport-saml/xml-crypto": "1.1.1"
}

@LoneRifle
Copy link
Contributor

Hello @christiaanwesterbeek @phof - could I trouble either of you to test this against 1.0.1 of xml-crypto to see if that works? The cause of the issue might be down to what @huineng raised in node-saml/xml-crypto#167 ; I just want someone to confirm this is the case.

If you can also confirm that the fix @huineng proposed there would resolve the issue, I'll take a PR.

@christiaanwesterbeek
Copy link

@LoneRifle I just tested it. A resolution with 1.0.1 of xml-crypto works too. I've looked into trying what @huineng proposed in node-saml/xml-crypto#167 . Unfortunately It's not enough info for me. I'll elaborate a bit over there...

@phof
Copy link

phof commented Jan 28, 2019

@LoneRifle Confirmed xml-crypto 1.0.1 works; I'll take a look at node-saml/xml-crypto#167

@LoneRifle
Copy link
Contributor

Let's continue the discussion there.

markstos pushed a commit that referenced this issue Feb 8, 2019
This change incorporates a revert that fixes the problem discussed on 
node-saml/xml-crypto#167. It also drops xpath.js in favour of xpath, which
everybody else uses.

Fixes #324
@node-saml node-saml deleted a comment from netmastan Feb 9, 2019
@netmastan
Copy link

netmastan commented Feb 9, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants