mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-25 20:51:23 +03:00
add connect-flash for generic open oidc (#5497)
This commit is contained in:
parent
e62bfadb76
commit
a8aa294199
@ -6656,6 +6656,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||
|
||||
// Generic OpenID Connect
|
||||
if ((domain.authstrategies.authStrategyFlags & domainAuthStrategyConsts.oidc) != 0) {
|
||||
var flash = require('connect-flash');
|
||||
obj.app.use(flash());
|
||||
obj.app.get(url + 'auth-oidc', function (req, res, next) {
|
||||
var domain = getDomain(req);
|
||||
if (domain.passport == null) { next(); return; }
|
||||
|
Loading…
Reference in New Issue
Block a user