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 <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-05-17 18:46:00 +02:00
parent 1119b30535
commit 7f3c04c9fc
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -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 {