add connect-flash for generic open oidc (#5497)

This commit is contained in:
gomeghi 2023-11-04 15:30:22 -03:00 committed by GitHub
parent e62bfadb76
commit a8aa294199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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; }