
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.
salesforce-canvas-request
Advanced tools
A utility library to support external applications run as Salesforce Canvas using a Node.js backend
A utility library to support external applications run as Salesforce Canvas using a Node.js backend
yarn install salesforce-canvas-request
or npm install salesforce-canvas-request
// Assumes you have two environment variables defined: SALESFORCE_APP_CONSUMER_KEY and PORT
const { createServer } = require('http');
const express = require('express');
const app = express();
const { verify } = require('salesforce-canvas-request');
app.post('/canvas', (req, res) => {
let decoded = verify(req.body.signed_request, process.env.SALESFORCE_APP_CONSUMER_KEY);
// TODO: At this point, you have a JSON that identifies a user. Utilize your own internal auth to cross reference or re-route to a web app endpoint to launch something
return res.json(decoded);
});
const server = createServer();
server.on('request', app);
server.listen(process.env.PORT, err => {
if (err) throw err;
winston.info(`> Ready on http://localhost:${port}`);
});
MIT
FAQs
A utility library to support external applications run as Salesforce Canvas using a Node.js backend
The npm package salesforce-canvas-request receives a total of 130 weekly downloads. As such, salesforce-canvas-request popularity was classified as not popular.
We found that salesforce-canvas-request 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.