mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-26 16:06:33 +03:00
require connect-flash for oidc #6132
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
2b3c329a54
commit
52a2194116
@ -6766,6 +6766,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||
if ((domain.authstrategies.authStrategyFlags & domainAuthStrategyConsts.oidc) != 0) {
|
||||
let authURL = url + 'auth-oidc'
|
||||
parent.authLog('setupHTTPHandlers', `OIDC: Authorization URL: ${authURL}`);
|
||||
obj.app.use(require('connect-flash')());
|
||||
obj.app.get(authURL, function (req, res, next) {
|
||||
var domain = getDomain(req);
|
||||
if (domain.passport == null) { next(); return; }
|
||||
|
Loading…
Reference in New Issue
Block a user