New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

api_auth_server

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api_auth_server

An HMAC server compatble with: https://github.com/mgomes/api_auth

1.0.2
latest
Source
npm
Version published
Maintainers
1
Created
Source

node_api_auth_server

An HMAC server compatble with: https://github.com/mgomes/api_auth

A client is available here: https://github.com/jlwebster/node_api_auth_client

To use:

var apiAuth = new ApiAuth( function( id , secret ){
	//this function is called by api_auth and asks for a secret based on the provided id;
	if( id === "ID" ) {
		secret( "SECRET" );
	}
}
});

apiAuth.check( request , body , function( error , is_authenticated , id ) {
	if( is_authenticated) {
		...
	}
}
});

Keywords

HMAC

FAQs

Package last updated on 12 May 2016

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