Skip to content

passport-saml upgade#51

Open
ukch wants to merge 8 commits intobm-developfrom
fix/passport-saml
Open

passport-saml upgade#51
ukch wants to merge 8 commits intobm-developfrom
fix/passport-saml

Conversation

@ukch
Copy link

@ukch ukch commented Jan 21, 2026

Closes biblemesh/ereader-development#108

@Fydon it seems like a simple switch but please double-check there are not going to be any gotchas here.

@ukch ukch requested review from Fydon and alitokgonul January 21, 2026 02:43
@ukch ukch force-pushed the fix/passport-saml branch from f8aff82 to a25fad7 Compare January 21, 2026 02:45
@Fydon
Copy link

Fydon commented Jan 21, 2026

Thank you. Does the login still complete successfully? Could you please provide the output of https://data.stg.read.test/Shibboleth.sso/Metadata?

@ukch
Copy link
Author

ukch commented Jan 22, 2026

@Fydon unfortunately not.

reader-1             | TypeError: idpCert is required
reader-1             |     at assertRequired (/app/node_modules/@node-saml/node-saml/lib/utility.js:10:15)
reader-1             |     at SAML.initialize (/app/node_modules/@node-saml/node-saml/lib/saml.js:53:38)
reader-1             |     at new SAML (/app/node_modules/@node-saml/node-saml/lib/saml.js:43:29)
reader-1             |     at new AbstractStrategy (/app/node_modules/@node-saml/passport-saml/lib/strategy.js:28:26)
reader-1             |     at new Strategy (/app/node_modules/@node-saml/passport-saml/lib/strategy.js:215:1)
reader-1             |     at /app/app.js:384:28
reader-1             |     at Array.forEach (<anonymous>)
reader-1             |     at /app/app.js:382:10
reader-1             |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
reader-1             | Jan 22, 2026, 01:25:23 UTC ERR  Unhandled node error TypeError: idpCert is required
reader-1             |     at assertRequired (/app/node_modules/@node-saml/node-saml/lib/utility.js:10:15)
reader-1             |     at SAML.initialize (/app/node_modules/@node-saml/node-saml/lib/saml.js:53:38)
reader-1             |     at new SAML (/app/node_modules/@node-saml/node-saml/lib/saml.js:43:29)
reader-1             |     at new AbstractStrategy (/app/node_modules/@node-saml/passport-saml/lib/strategy.js:28:26)
reader-1             |     at new Strategy (/app/node_modules/@node-saml/passport-saml/lib/strategy.js:215:1)
reader-1             |     at /app/app.js:384:28
reader-1             |     at Array.forEach (<anonymous>)
reader-1             |     at /app/app.js:382:10
reader-1             |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

I guess the 'cert' argument to saml.Strategy should be renamed to 'idpCert'. Anywhere else you can see the API could have changed in a way that would affect us?

Base automatically changed from BM-7-fix-critical-and-some-high-dependabot-issues-and-add-free-dependabot-to-project to bm-develop January 22, 2026 01:53
@ukch ukch changed the base branch from bm-develop to fix/reader-hanging January 30, 2026 03:57
@ukch
Copy link
Author

ukch commented Jan 30, 2026

@Fydon please rereview (depends #59)

package.json Outdated
@@ -66,10 +67,10 @@
"node-fetch": "^2.7.0",
"oauth-signature": "1.5.0",
"passport": "0.4.1",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry as I had to redo the work, I didn't update passport in this attempt. Please update passport to "0.5.3" as fixed version, as newer versions require more work to correct session handling

@ukch ukch requested a review from Fydon February 5, 2026 21:14
@ukch
Copy link
Author

ukch commented Feb 5, 2026

@alitokgonul it looks like the new tests you wrote are failing here and it's not immediately obvious why. Can you please investigate this?

@alitokgonul
Copy link

@alitokgonul it looks like the new tests you wrote are failing here and it's not immediately obvious why. Can you please investigate this?

@joel Cross I have checked this but I couldn't find any reasons why test fails on CI. because locally, all tests pass in bm-develop and your branch

@Fydon
Copy link

Fydon commented Feb 6, 2026

Having a quick look, it might be because of the new dependency @types/express

@alitokgonul Did you run npm ci before running the test?

Base automatically changed from fix/reader-hanging to bm-develop February 6, 2026 19:55
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 this pull request may close these issues.

3 participants