
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
express-auth-parser
Advanced tools
Express based middleware, can be used to parse any Basic like authorization headers.
npm install express-auth-parser
var express = require('express')
var authParser = require('express-auth-parser');
var app = express();
app.use(authParser);
app.get('/', function (req, res) {
// Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
console.log(req.authorization)
{
scheme: 'Basic',
credentials: 'dXNlcm5hbWU6cGFzc3dvcmQ=',
basic: { username: 'username', password: 'password' }
}
// Authorization: Bearer ZXlKMGVYQWlPaUpLVjFRaUxDSmhiR2NpT2lKSVV6STFOaUo5LmV5SjFjMlZ5Ym1GdFpTST...
{
scheme: 'Bearer',
credentials: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6InVzZXJuYW1l...'
}
res.send('Hello World');
});
app.listen(3000);
FAQs
Authorization Parser middleware for express
The npm package express-auth-parser receives a total of 92 weekly downloads. As such, express-auth-parser popularity was classified as not popular.
We found that express-auth-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.