Enables basic token authentication for restify
JavaScript
Latest commit ca0312b Sep 21, 2012 @naxhh fixed undefined secret pass
Permalink
Failed to load latest commit information.
.gitignore Initial commit Sep 13, 2012
README.md First up, basic module + basic readme Sep 13, 2012
restify-token.js fixed undefined secret pass Sep 21, 2012

README.md

restify-token-auth

Pending readme. (unfinished version)

Baic use

var restify = require('restify'),
	restifyToken = require('./libs/restify-token.js'),
	redis = require('./libs/redis.js'),

	server = restify.createServer({
		name    : 'API name',
		version : '0.0.1'
	});

server.use(restify.queryParser());
server.use(redis.load); //load redis to res.locals.redis #this gonna be changed soon

//Token system authentication
restifyToken.auth({s:server,r:restify});