From 7f3c04c9fcbf483a2fc254d38bce5c6f31e929b4 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Mon, 17 May 2021 18:46:00 +0200 Subject: [PATCH] SAML: Use `privateKey` option The old `privateCert` option was removed in https://github.com/node-saml/passport-saml/pull/569 Signed-off-by: David Mehren --- lib/web/auth/saml/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web/auth/saml/index.js b/lib/web/auth/saml/index.js index deb040072..8362694c1 100644 --- a/lib/web/auth/saml/index.js +++ b/lib/web/auth/saml/index.js @@ -16,7 +16,7 @@ passport.use(new SamlStrategy({ callbackUrl: config.serverURL + '/auth/saml/callback', entryPoint: config.saml.idpSsoUrl, issuer: config.saml.issuer || config.serverURL, - privateCert: config.saml.clientCert === undefined + privateKey: config.saml.clientCert === undefined ? undefined : (function () { try {