SAML fix
Ylian Saint-Hilaire committed
Jun 5, 2020 at 00:43 UTC
a432f9caad2fdb68293ea5fed510b28ea707f539
1 file changed
+3
-3
webserver.js
+3
-3
@@ -4548,7 +4548,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
4548
console.log('ERROR: Unable to read SAML IdP certificate: ' + domain.authstrategies.saml.cert);
4549
} else {
4550
var options = {
4551
- path: (typeof domain.authstrategies.saml.callbackurl == 'string') ? domain.authstrategies.saml.callbackurl : (url + 'auth-saml-callback'),
4551
+ callbackUrl: (typeof domain.authstrategies.saml.callbackurl == 'string') ? domain.authstrategies.saml.callbackurl : (url + 'auth-saml-callback'),
4552
entryPoint: domain.authstrategies.saml.idpurl, issuer: 'meshcentral'
4553
};
4554
if (domain.authstrategies.saml.disablerequestedauthncontext != null) { options.disableRequestedAuthnContext = domain.authstrategies.saml.disablerequestedauthncontext; }
@@ -4590,7 +4590,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
4590
console.log('ERROR: Unable to read Intel SAML IdP certificate: ' + domain.authstrategies.intel.cert);
4591
} else {
4592
var options = {
4593
- path: (typeof domain.authstrategies.intel.callbackurl == 'string') ? domain.authstrategies.intel.callbackurl : (url + 'auth-intel-callback'),
4593
+ callbackUrl: (typeof domain.authstrategies.intel.callbackurl == 'string') ? domain.authstrategies.intel.callbackurl : (url + 'auth-intel-callback'),
4594
entryPoint: domain.authstrategies.intel.idpurl, issuer: 'meshcentral'
4595
};
4596
if (domain.authstrategies.intel.disablerequestedauthncontext != null) { options.disableRequestedAuthnContext = domain.authstrategies.intel.disablerequestedauthncontext; }
@@ -4634,7 +4634,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
4634
console.log('ERROR: Unable to read JumpCloud IdP certificate: ' + domain.authstrategies.jumpcloud.cert);
4635
} else {
4636
var options = {
4637
- path: (typeof domain.authstrategies.jumpcloud.callbackurl == 'string') ? domain.authstrategies.jumpcloud.callbackurl : (url + 'auth-jumpcloud-callback'),
4637
+ callbackUrl: (typeof domain.authstrategies.jumpcloud.callbackurl == 'string') ? domain.authstrategies.jumpcloud.callbackurl : (url + 'auth-jumpcloud-callback'),
4638
entryPoint: domain.authstrategies.jumpcloud.idpurl, issuer: 'meshcentral'
4639
};
4640
parent.debug('web', 'Adding JumpCloud SSO with options: ' + JSON.stringify(options));