Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
oauth-simple-signature-check
Advanced tools
Readme
This package is a simple way to quickly test an OAuth 1.0a signature for validity. As it is intended to be extremely simple, there are no configuration options; however, you may use it as a base if you need different behavior. The algorithm for validating OAuth signatures was adapted from this site: http://lti.tools/oauth/
It was originally designed to simplify OAuth signature validation within the LTI (Learning Tools Interopability) spec, but it can be adapted to many other uses as well.
The package works out-of-the-box with Express.js.
The algorithm assumes you are using HMAC-SHA1 within the OAuth 1.0a spec. Again, you can fork this package and easily change this, if needed. It also assumes you are using UTF-8 for encoding (which you should be).
Call it in your express.js app, within a route. Here is an example:
const validateOAuthSignature = require("oauth-simple-signature-check");
app.post("/", function (req, res) => {
const isOAuthSignatureValid = validateOAuthSignature(req, process.env.CONSUMER_SECRET);
if (isOAuthSignatureValid)
res.json({ data: {str: "my secret string"} });
else
res.json({});
});
FAQs
A simple OAuth 1.0a signature verification package.
The npm package oauth-simple-signature-check receives a total of 19 weekly downloads. As such, oauth-simple-signature-check popularity was classified as not popular.
We found that oauth-simple-signature-check 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.