mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-29 15:35:57 -05: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
|
// Generic OpenID Connect
|
||||||
if ((domain.authstrategies.authStrategyFlags & domainAuthStrategyConsts.oidc) != 0) {
|
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) {
|
obj.app.get(url + 'auth-oidc', function (req, res, next) {
|
||||||
var domain = getDomain(req);
|
var domain = getDomain(req);
|
||||||
if (domain.passport == null) { next(); return; }
|
if (domain.passport == null) { next(); return; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user