From a432f9caad2fdb68293ea5fed510b28ea707f539 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Fri, 5 Jun 2020 00:43:59 -0700 Subject: [PATCH] SAML fix --- webserver.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webserver.js b/webserver.js index 8a181d88..aae51cc6 100644 --- a/webserver.js +++ b/webserver.js @@ -4548,7 +4548,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) { console.log('ERROR: Unable to read SAML IdP certificate: ' + domain.authstrategies.saml.cert); } else { var options = { - path: (typeof domain.authstrategies.saml.callbackurl == 'string') ? domain.authstrategies.saml.callbackurl : (url + 'auth-saml-callback'), + callbackUrl: (typeof domain.authstrategies.saml.callbackurl == 'string') ? domain.authstrategies.saml.callbackurl : (url + 'auth-saml-callback'), entryPoint: domain.authstrategies.saml.idpurl, issuer: 'meshcentral' }; if (domain.authstrategies.saml.disablerequestedauthncontext != null) { options.disableRequestedAuthnContext = domain.authstrategies.saml.disablerequestedauthncontext; } @@ -4590,7 +4590,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) { console.log('ERROR: Unable to read Intel SAML IdP certificate: ' + domain.authstrategies.intel.cert); } else { var options = { - path: (typeof domain.authstrategies.intel.callbackurl == 'string') ? domain.authstrategies.intel.callbackurl : (url + 'auth-intel-callback'), + callbackUrl: (typeof domain.authstrategies.intel.callbackurl == 'string') ? domain.authstrategies.intel.callbackurl : (url + 'auth-intel-callback'), entryPoint: domain.authstrategies.intel.idpurl, issuer: 'meshcentral' }; if (domain.authstrategies.intel.disablerequestedauthncontext != null) { options.disableRequestedAuthnContext = domain.authstrategies.intel.disablerequestedauthncontext; } @@ -4634,7 +4634,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) { console.log('ERROR: Unable to read JumpCloud IdP certificate: ' + domain.authstrategies.jumpcloud.cert); } else { var options = { - path: (typeof domain.authstrategies.jumpcloud.callbackurl == 'string') ? domain.authstrategies.jumpcloud.callbackurl : (url + 'auth-jumpcloud-callback'), + callbackUrl: (typeof domain.authstrategies.jumpcloud.callbackurl == 'string') ? domain.authstrategies.jumpcloud.callbackurl : (url + 'auth-jumpcloud-callback'), entryPoint: domain.authstrategies.jumpcloud.idpurl, issuer: 'meshcentral' }; parent.debug('web', 'Adding JumpCloud SSO with options: ' + JSON.stringify(options));