Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@webtask/bearer-auth-middleware
Advanced tools
Webtask middleware that implements generic bearer token authentication
The bearer auth middleware is a generic bearer token authentication solution for webtasks. A request to a webtask configured with this middleware will be rejected with a 401
response if it lacks the correct bearer token.
To use the bearer auth middleware requires encoding a shared secret in the wt-auth-secret
secret that must be specified in Authentication: Bearer <SHARED_SECRET>
headers.
Set the wt-node-dependencies
metadata property to the stringified JSON of an object having @webtask/middleware-compiler
and @webtask/bearer-auth-middleware
properties whose values are the latest version of the @webtask/middleware-compiler module and this module, respectively.
{"@webtask/middleware-compiler":"1.1.0","@webtas/bearer-auth-middleware":"1.1.0"}
Set the wt-compiler
metadata property on your webtask to @webtask/middleware-compiler
.
Set (or add to) the wt-middleware
metadata property of your webtask to contain a comma-separated list containing @webtask/bearer-auth-middleware
.
Set the wt-auth-secret
secret to a shared secret.
Issue requests to your webtask, making sure that you add an Authorization
header having the value: Bearer <SHARED_SECRET>
.
FAQs
Webtask middleware that implements generic bearer token authentication
The npm package @webtask/bearer-auth-middleware receives a total of 0 weekly downloads. As such, @webtask/bearer-auth-middleware popularity was classified as not popular.
We found that @webtask/bearer-auth-middleware demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.