summaryrefslogtreecommitdiff
path: root/lib/web
diff options
context:
space:
mode:
authorSimeon Keske2020-04-29 18:27:00 +0200
committerLeo Maroni2020-07-11 21:19:49 +0200
commit17f0067ab2553fdfd4c7b4043440c9a3e325929c (patch)
treed3a8ed267dcfcb53e551ef89bd0f512fa1adc5c6 /lib/web
parent3db8b0df43b027d15d13047e25617266ddc57f13 (diff)
allow to set a saml client certificate
Signed-off-by: Simeon Keske <git@n0emis.eu>
Diffstat (limited to '')
-rw-r--r--lib/web/auth/saml/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/web/auth/saml/index.js b/lib/web/auth/saml/index.js
index 40a6f8b3..4d0bfec5 100644
--- a/lib/web/auth/saml/index.js
+++ b/lib/web/auth/saml/index.js
@@ -17,6 +17,7 @@ passport.use(new SamlStrategy({
entryPoint: config.saml.idpSsoUrl,
issuer: config.saml.issuer || config.serverURL,
cert: fs.readFileSync(config.saml.idpCert, 'utf-8'),
+ privateCert: config.saml.clientCert === undefined ? undefined : fs.readFileSync(config.saml.clientCert, 'utf-8'),
identifierFormat: config.saml.identifierFormat,
disableRequestedAuthnContext: config.saml.disableRequestedAuthnContext
}, function (user, done) {