Node-Rest-Auth authenticates rest type http api requests using a username, nonce salt and a hash.
'Node-Rest-Auth' authenticates rest type http api requests using a username, nonce salt and a hash.
This library is still under development. There are bugs. APIs will change. Docs may be wrong.
Keep in mind this is something I make in my free time and that's something I've had very little of lately thanks to my many other projects.
npm install nra
var nra = require'./nra'sha1 = require'sha1'redis = require"redis";// Init and set up Fixture Datavar user = 'Reseller One'user_id = sha1userkey = '1234567'salt = getTimehash = sha1user + key + saltrc = rediscreateClient;rcHMSETuser_id 'salt': 0'key': keynraauthusersalthashif errconsole.log'err: '+err;elseconsole.log'result: '+result;;;
This will return true or false.