Socket
Socket
Sign inDemoInstall

apigateway4

Package Overview
Dependencies
41
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    apigateway4

AWS API Gateway request signing library


Version published
Weekly downloads
9
increased by350%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

apigateway4

AWS API Gateway request signing library

npm npm

NPM

About

apigateway4 is a simple SDK for AWS API Gateway request signing with the Signature Version4 Signing Process.

Features

Usage

var agw4  = require('apigateway4')

var requestOpts = {
	uri: 'https://<apigateway_id>.execute-api.us-west-2.amazonaws.com/v1/auth?name=myname&foo=bar'
}

var signer = new agw4.BuildRequestSigner(requestOpts,credentials)

signer.sign()

// example for 'got'
require('got')(requestOpts.uri, requestOpts)
 .then( (html)=> console.log(html.body))
 .catch( (e) => console.log(e))


// example for 'request-promise'
require('request-promise')(requestOpts)
 .then( (html)=> console.log(html))
 .catch( (e) => console.log(e))

see example.js for more details

FAQs

Last updated on 13 Jul 2016

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