-
Notifications
You must be signed in to change notification settings - Fork 474
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
[BUG] Invalid document signature #859
Comments
We also encountered such error and the workaround was adding the following options: // After updating from `passport-saml` to `@node-saml/passport-saml`,
// it started throwing `Error: Invalid document signature`
// when testing SSO using Acadeum's Google SAML server.
// Turns out that's a common issue and the workaround is to pass
// `wantAssertionsSigned: false` / `wantAuthnResponseSigned: false` flags.
// https://github.com/node-saml/passport-saml/issues/839
// https://github.com/node-saml/node-saml/blob/master/CHANGELOG.md#v400-2022-10-28
wantAssertionsSigned: false,
wantAuthnResponseSigned: false, |
I encountered the same issue and after quite some digging in code this seems to be indeed because in @cjbarth are you sure this is an intended behavior ? I feel |
The change was intended as it is in harmony with the secure-by-default philosophy that we have here. Please feel free to put up a PR to help us with our README. |
Ok I understand but then indeed it would be great to specify it in documentation, I can open a PR for that 👍 |
I agree this would be useful to highlight as a breaking change in the Changelog. |
I opened a PR to update both doc and changelog: #883 |
Could you help me to know why I have this error after we updated from passport-saml to @node-saml/passport-saml:
Error: Invalid document signature
at SAML.validatePostResponseAsync (/usr/src/server/node_modules/@node-saml/node-saml/lib/saml.js:510:23)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
The text was updated successfully, but these errors were encountered: