1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix use of custom auth strategy plugins

This commit is contained in:
Nick O'Leary 2019-02-12 10:45:38 +00:00
parent be1b9c0e43
commit 419f26db87
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -199,7 +199,7 @@ function genericStrategy(adminApp,strategy) {
if (/^post$/i.test(options.callbackMethod)) { if (/^post$/i.test(options.callbackMethod)) {
callbackMethodFunc = adminApp.post; callbackMethodFunc = adminApp.post;
} }
callbackMethodFunc('/auth/strategy/callback', callbackMethodFunc.call(adminApp,'/auth/strategy/callback',
passport.authenticate(strategy.name, {session:false, failureRedirect: settings.httpAdminRoot }), passport.authenticate(strategy.name, {session:false, failureRedirect: settings.httpAdminRoot }),
completeGenerateStrategyAuth completeGenerateStrategyAuth
); );