Socket
Book a DemoInstallSign in
Socket

fixedauth

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fixedauth

peer service authentication with a fixed, shared key

0.3.0
latest
npmnpm
Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

fixedauth

peer service authentication with a fixed, shared key

usage

client:

var fixedauth = require('fixedauth')

var headers = {
  authorization: fixedauth.sign('secret key!')
}

// an http request with the above headers object

server:

var fixedauth = require('fixedauth')

// string resulting from fixedauth.sign, however you choose to transmit it
var signature

var isAuthorized = fixedauth.verify('secret key', signature)

Also available as connect-style middleware:

var fixedauth = require('fixedauth')

app.use(fixedauth('secret key!'))

about

Authenticate requests between a client and a server using a shared secret key and a sha256 HMAC. This scheme uses a timestamp to prevent against replay attacks. The client and server timestamp are required to be +/- 60 seconds of each other.

Based somewhat on hawk

installation

$ npm install fixedauth

running the tests

From package root:

$ npm install
$ npm test

contributors

  • jden jason@denizac.org

license

MIT. (c) MMXIII AgileMD http://agilemd.com

Keywords

authentication

FAQs

Package last updated on 08 Apr 2014

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.