
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
express-accesstoken-validation
Advanced tools
ExpressJS middleware for remote access token validation
ExpressJS middleware for remote access token validation
Although JWT have become common use in OAuth 2.0 / OpenId Connect scenarios, there a scenarios where you as an resource server (=API) have to validate an access token received by the client.
This validation normally is delegated to the OAuth 2.0 server which created that access token.
express-accesstoken-validation
is an ExpressJS middleware that lets you delegate the access token validation to an OAuth 2.0 server like oauth2-server.
npm install express-accesstoken-validation --save
const bearerTokenValidation = require('express-accesstoken-validation');
let options = {
validationUri: 'https://localhost:3000/oauth/tokenvalidation',
tokenParam: 'token',
unprotected: ['/public']
}
app.use(bearerTokenValidation(options));
options
provides this options:
validationUri
: The access token validation uri of the OAuth 2.0 servertokenParam
: The name of the token query parameter expected by the OAuth 2.0 serverunprotected
: optional, a list of routes that should not be protectedMake sure to register express-accesstoken-validation
as the first middleware to ensure all requests get authorized.
npm test
FAQs
ExpressJS middleware for remote access token validation
The npm package express-accesstoken-validation receives a total of 0 weekly downloads. As such, express-accesstoken-validation popularity was classified as not popular.
We found that express-accesstoken-validation 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.