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

"invalid signature" after updating passport saml #456

Closed
yj188 opened this issue Sep 21, 2020 · 8 comments
Closed

"invalid signature" after updating passport saml #456

yj188 opened this issue Sep 21, 2020 · 8 comments

Comments

@yj188
Copy link

yj188 commented Sep 21, 2020

passport saml version: 1.1.0 --> 1.3.5
xml-crypto: 1.4.0 --> 1.5.3
xml-encryption: 0.11.2 ->1.2.1

Error: Invalid signature
at /var/task/node_modules/passport-saml/lib/passport-saml/saml.js:611:15
at _fulfilled (/var/task/node_modules/q/q.js:854:54)
at /var/task/node_modules/q/q.js:883:30
at Promise.promise.promiseDispatch (/var/task/node_modules/q/q.js:816:13)
at /var/task/node_modules/q/q.js:624:44
at runSingle (/var/task/node_modules/q/q.js:137:13)
at flush (/var/task/node_modules/q/q.js:125:13)
at processTicksAndRejections (internal/process/task_queues.js:79:11)

@yj188 yj188 added the bug label Sep 21, 2020
@yj188
Copy link
Author

yj188 commented Sep 21, 2020

Update xml-crypto back to 1.4.0 resolve the issue

@yj188 yj188 closed this as completed Sep 21, 2020
@cjbarth
Copy link
Collaborator

cjbarth commented Sep 21, 2020

Was a corresponding bug filed with xml-crypto to get this resolved? I hate to just leave us stuck on v1.4.0.

@markstos
Copy link
Contributor

markstos commented Oct 7, 2020

@cjbarth There are newer releases of xml-crypto out. Could test an upgrade with them? 1.5.3 or 2.0.0. The 2.0.0 release addresses some security concerns but is a breaking change.

@cjbarth
Copy link
Collaborator

cjbarth commented Oct 7, 2020

@yj188 Could you please provide a reproduction for the error you encountered? Ideally, it would be nice to have a test added that would pass with v1.4.0 and fail with v1.5.3.

@Harsha3878
Copy link

passport saml version: 1.3.4 --> 1.3.5
xml-crypto: 1.4.0
xml-encryption: 1.2.1

Error: Invalid signature
\node_modules\passport-saml\lib\passport-saml\saml.js:611:15
node_modules\q\q.js:854:54)
node_modules\q\q.js:883:30
at Promise.promise.promiseDispatch (\node_modules\q\q.js:816:13)
at node_modules\q\q.js:624:44
at runSingle (\node_modules\q\q.js:137:13)
at flush (\node_modules\q\q.js:125:13)
at processTicksAndRejections (internal/process/task_queues.js:79:11)

@cjbarth
Copy link
Collaborator

cjbarth commented Oct 8, 2020

@Harsha3878 , are you saying that v1.3.4 works, but v1.3.5 fails with the current test suite?

@Harsha3878
Copy link

@cjbarth No i tried both the version but it failed with both intial version i was using was 0.15.0

@markstos
Copy link
Contributor

I'm closing this now due to updating the xml-crypto dep to 2.0.0 in a release coming out shortly. Please comment if the issue persists with that version.

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

No branches or pull requests

4 participants