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) {
|
if ((domain.authstrategies.authStrategyFlags & domainAuthStrategyConsts.oidc) != 0) {
|
||||||
let authURL = url + 'auth-oidc'
|
let authURL = url + 'auth-oidc'
|
||||||
parent.authLog('setupHTTPHandlers', `OIDC: Authorization URL: ${authURL}`);
|
parent.authLog('setupHTTPHandlers', `OIDC: Authorization URL: ${authURL}`);
|
||||||
|
obj.app.use(require('connect-flash')());
|
||||||
obj.app.get(authURL, function (req, res, next) {
|
obj.app.get(authURL, 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…
Reference in New Issue