Giter Site home page Giter Site logo

aws-hmac's Introduction

aws-hmac

A small Node.js utility to generate an HMAC signature to authorize AWS API requests.

For more details about signing AWS requests, see the AWS docs.

Special thanks to Robert Kehoe for providing a clear example from which this utility is derived.

Installation

npm install aws-hmac --save

Usage

aws_access_id = "ramhiser"
aws_secret_key = "FLUFFY BUNNIES"

var aws_hmac = require("aws-hmac");
aws_signature = aws_hmac.generate_signature(aws_access_id, aws_secret_key);
console.log(aws_signature);

/*
{ Date: 'Sat, 02 Apr 2016 03:33:17 GMT',
  'X-Amzn-Authorization': 'AWS3-HTTPS
  AWSAccessKeyId=ramhiser,Algorithm=HMACSHA256,Signature=OIPTkauadMhOOTWJsoKcFMv7jAldNOz45pCDwYegmKI=' }
*/

Tests

npm test

License

The aws-hmac module is licensed under the MIT License and is freely available for commercial and non-commerical usage. Please consult the licensing terms in the LICENSE file for more details.

aws-hmac's People

Contributors

ramhiser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

aws-hmac's Issues

No longer valid

This form of authentication using the x-amz-authorization header is no longer valid. This was part of a previous and now deprecated version of the AWS API (version 3). The new API (version 4) uses the 'authorization' header.

https://forums.aws.amazon.com/thread.jspa?messageID=780858&tstart=0

It would be great if there was a small node module to generate that header without requiring the whole aws-sdk module. If that, dear reader, is what you're looking for, you must look elsewhere.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.