1.0.2 • Published 8 years ago

api_auth_server v1.0.2

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
8 years ago

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) {
		...
	}
}
});
1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago