From 419f26db87c626f4c2bffa88936291def838f995 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 12 Feb 2019 10:45:38 +0000 Subject: [PATCH] Fix use of custom auth strategy plugins --- packages/node_modules/@node-red/editor-api/lib/auth/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-api/lib/auth/index.js b/packages/node_modules/@node-red/editor-api/lib/auth/index.js index 7781ebc7f..a7ee2e7f3 100644 --- a/packages/node_modules/@node-red/editor-api/lib/auth/index.js +++ b/packages/node_modules/@node-red/editor-api/lib/auth/index.js @@ -199,7 +199,7 @@ function genericStrategy(adminApp,strategy) { if (/^post$/i.test(options.callbackMethod)) { callbackMethodFunc = adminApp.post; } - callbackMethodFunc('/auth/strategy/callback', + callbackMethodFunc.call(adminApp,'/auth/strategy/callback', passport.authenticate(strategy.name, {session:false, failureRedirect: settings.httpAdminRoot }), completeGenerateStrategyAuth );