New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aws-signer-v4

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-signer-v4

Create AWS Signature v4 from request information and credentials.

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

aws-signer-v4

Create AWS Signature v4 from request information and credentials.

Install

npm install --save aws-signer-v4

Usage

// Prepare your request information
var request = {
  body: '',
  headers: {
    Date: new Date().toISOString(),
    Host: 'apigateway.us-east-1.amazonaws.com'
  },
  method: 'GET',
  url: 'https://apigateway.us-east-1.amazonaws.com/restapis'
};

// Create a Sign instance
var Sign = require('aws-signer-v4')
var sign = new Sign(
  accessKeyId: 'AWS_ACCESS_KEY_ID',
  body: request.body,
  headers: request.headers,
  method: 'GET',
  region: 'ua-east-1',
  secretAccessKey: 'AWS_SECRET_ACCESS_KEY',
  url: request.url
);

// Call #toString method to generate Authorization header value
headers.Authroziation = sign.toString()

FAQs

Package last updated on 18 Dec 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc