1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

swapped to working passport oidc module

This commit is contained in:
mstrhakr 2022-04-08 11:38:55 -04:00
parent 4eefe1531c
commit 149573a878
2 changed files with 2 additions and 2 deletions

View file

@ -6255,7 +6255,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
responseMode: 'form_post' ,
state: true
};
const OIDCStrategy = require('passport-openidconnect');
const OIDCStrategy = require('passport-generic-oidc');
if (typeof domain.authstrategies.oidc.callbackurl == 'string') { options.callbackURL = domain.authstrategies.oidc.callbackurl; } else { options.callbackURL = url + 'oidc-callback'; }
parent.debug('web', 'Adding Generic OIDC SSO with options: ' + JSON.stringify(options));
passport.use('openidconnect', new OIDCStrategy.Strategy(options,