A Node.js helper library for authenticating to the CyberSource REST API. Version 0.0.10 is the current stable release; maintained as part of CyberSource's official SDK suite. Supports HTTP Signature and JWT authentication mechanisms. Enables POST, GET, PUT, DELETE requests with automatic signing. Provides MetaKey support for child merchants. Configurable via cybs.json. Key differentiator: dedicated auth abstraction layer for CyberSource REST API, not a generic HTTP client. Low release cadence (limited updates). Unsuitable for browser usage; Node.js only (v8.11.1+). ESM not supported (CommonJS only).
npm install cybersource-rest-authNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
CommonJS initialization with HTTP Signature authentication and a POST request to the CyberSandbox sandbox endpoint.
Upgrade Node.js to 8.11.1 or later.
Switch to a maintained HTTP client like axios or use the native fetch if available.
Use require() instead of import.
Ensure cybs.json is in the root directory or pass config object to the constructor.
Include portfolioID in the config when using MetaKey with HTTP Signature.
Run 'npm install cybersource-rest-auth' in the project directory.
Use 'var auth = require('cybersource-rest-auth');' and then 'auth.AuthenticationSDK'.Ensure you create an instance with 'new auth.AuthenticationSDK(config)' and use .post/ .get/ .put/ .delete.
Create a valid cybs.json file in the application root directory.