Socket
Socket
Sign inDemoInstall

aws-sign2

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-sign2

AWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module.


Version published
Maintainers
1
Weekly downloads
16,229,379
decreased by-11.83%

Weekly downloads

Package description

What is aws-sign2?

The aws-sign2 npm package is designed for signing and authenticating requests made to Amazon Web Services (AWS) using their signature version 2 signing process. This package is particularly useful for developers working with AWS services that require signed requests for secure access and operations. It simplifies the process of generating the necessary authentication headers.

What are aws-sign2's main functionalities?

Signing AWS Service Requests

This code sample demonstrates how to sign a request to an AWS service using the aws-sign2 package. It involves creating a request object with the desired AWS service URL, method, and body. Then, it uses the `sign` method from aws-sign2, passing in the request options and AWS credentials (access key ID and secret access key) to sign the request. Finally, the signed request is sent using the `request` package.

const awsSign2 = require('aws-sign2');
const request = require('request');

var options = {
  url: 'https://service.amazonaws.com',
  method: 'POST',
  body: 'This is the body of my request',
  headers: {}
};

var credentials = {
  accessKeyId: 'YOUR_ACCESS_KEY_ID',
  secretAccessKey: 'YOUR_SECRET_ACCESS_KEY'
};

awsSign2.sign(options, credentials);

request(options, function(err, res, body) {
  console.log(body);
});

Other packages similar to aws-sign2

Readme

Source

aws-sign

AWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module.

FAQs

Last updated on 12 Apr 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc