return to former glory

This commit is contained in:
AJ ONeal 2018-06-29 12:05:29 +00:00
parent 40d54bcdad
commit 8aecbb1f56
1 changed files with 2 additions and 2 deletions

View File

@ -299,8 +299,8 @@ module.exports.authenticate = function (opts) {
if (auth && (auth.authn === opts.auth || auth.authz === opts.auth)) {
if (!auth.authz) {
console.log("[wss.ext.authenticate] Create authz promise and passthru");
getPromise(auth);
return state.defaults.authenticate(opts.auth);
return getPromise(auth);
//return state.defaults.authenticate(opts.auth);
}
// If they used authn but now authz is available, use authz