Socket
Socket
Sign inDemoInstall

superagent-http-signature

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superagent-http-signature

A plugin for superagent that signs requests following Joyent's HTTP Signature Scheme


Version published
Maintainers
1
Created
Source

superagent-http-signature

A plugin for superagent that signs requests using Joyent's HTTP Signature Scheme. Forked from joyent/node-http-signature to be used with superagent.

Supported algorithms

  • rsa-sha1
  • rsa-sha256
  • rsa-sha512
  • dsa-sha1
  • hmac-sha1
  • hmac-sha256
  • hmac-sha512

HMAC-only version

For usage with browserify using the index-hmac-only.js version is recommended because it's a lot smaller without all the other signing code included!

Installation

Install with npm:

$ npm install superagent-http-signature

Usage

var superagent = require('superagent');
var superagentHttpSignature = require('superagent-http-signature');

superagent
    .get('http://www.example.com')
    .use(superagentHttpSignature({
         headers: ['(request-target)', 'content-md5'],
         algorithm: 'hmac-sha256',
         key: 'YOUR_KEY',
         keyId: 'YOUR_SECRET'
     }))
    .end(function(err, res) {});

Keywords

FAQs

Package last updated on 19 Aug 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