Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Requires your Dwolla application client_id and client_secret.
Requires a valid user OAuth2 token. Note tokens do not expire and may be reused.
All optional parameters are passed in as an optional object before the callback.
If you desire to test your application with Dwolla's UAT sandbox, you can dynamically toggle between sandbox and production mode by toggling the sandbox flag.
dwolla = require('dwolla');
dwolla.sandbox = true;
The sandbox environment is disabled by default.
To authenticate a user, follow the examples from one of the following modules.
everyauth is an authentication and authorization module for your node.js Connect and Express apps. See http://everyauth.com/#other-modules/dwolla-oauth2
Passport is authentication middleware for Node.js, popular for being lightweight, modular, and flexible. A strategy for authenticating with Dwolla, along with an example, is available in the passport-dwolla module.
The Dwolla Generate Token tool allows you create a valid OAuth token for testing purposes.
$ npm install dwolla
See more examples in the examples folder.
var dwolla = require('dwolla');
// use the Dwolla Sandbox environment instead of prod
dwolla.sandbox = true;
// get oauth_token, be sure to set the proper scope
// use oauth lib or everyauth to setup OAuth2
// see everyauth for example Dwolla authentication
var token = req.session.oauth_token;
dwolla.fullAccountInfo(token, function(err, data) {
console.log("Full Account Info: " + data);
});
dwolla.transactions(token, function(err, data) {
console.log("Transactions: " + data);
});
var params = {};
params.search = 'Ben';
params.types = 'All';
dwolla.contacts(token, params, function(err, data) {
console.log("Contacts: " + data);
});
Tests use mocha and should.js. Tests were made only for GET requests, as tests of POST requests would be processed just like real requests. Although working examples of each POST request can be found in the examples folder.
$ npm test
or
$ mocha
FAQs
Dwolla API for node.js
The npm package dwolla receives a total of 36 weekly downloads. As such, dwolla popularity was classified as not popular.
We found that dwolla 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.