Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/node-red/node_modules/oauth2orize/lib/middleware/ drwxr-xr-x | |
| Viewing file: Select action/file-type: module.exports = function(server, options) {
options = options || {};
if (!server) { throw new TypeError('oauth2orize.authorizationErrorHandler middleware requires a server argument'); }
return function authorizationErrorHandler(err, req, res, next) {
if (!req.oauth2) { return next(err); }
if (req.oauth2.transactionID && !req.oauth2._endProxied) {
// proxy end() to delete the transaction
var end = res.end;
res.end = function(chunk, encoding) {
if (server._txnStore.legacy == true) {
server._txnStore.remove(options, req, req.oauth2.transactionID, function noop(){});
} else {
server._txnStore.remove(req, req.oauth2.transactionID, function noop(){});
}
res.end = end;
res.end(chunk, encoding);
};
}
server._respondError(err, req.oauth2, res, function(err) {
return next(err);
});
}
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.029 ]-- |