carcass-auth
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -8,3 +8,8 @@ var debug = require('debug')('carcass-auth:Application:Passport'); | ||
// @see http://passportjs.org | ||
module.exports = carcass.factories.Express(function(app, options) { | ||
module.exports = carcass.factories.Express({ | ||
title: 'Restify', | ||
initialize: initialize | ||
}); | ||
function initialize(app, options) { | ||
debug('initializing'); | ||
@@ -17,2 +22,2 @@ | ||
app.use(passport.initialize()); | ||
}); | ||
}; |
@@ -12,3 +12,8 @@ var debug = require('debug')('carcass-auth:Application:Passport:Session'); | ||
// Requires passport.serializeUser() and passport.deserializeUser(). | ||
module.exports = carcass.factories.Express(function(app, options) { | ||
module.exports = carcass.factories.Express({ | ||
title: 'Restify', | ||
initialize: initialize | ||
}); | ||
function initialize(app, options) { | ||
debug('initializing'); | ||
@@ -21,2 +26,2 @@ | ||
app.use(passport.session()); | ||
}); | ||
}; |
@@ -10,3 +10,8 @@ var debug = require('debug')('carcass-auth:Application:Session'); | ||
// @see http://www.senchalabs.org/connect/session.html | ||
module.exports = carcass.factories.Express(function(app, options) { | ||
module.exports = carcass.factories.Express({ | ||
title: 'Session', | ||
initialize: initialize | ||
}); | ||
function initialize(app, options) { | ||
debug('initializing'); | ||
@@ -31,2 +36,2 @@ | ||
app.use(session); | ||
}); | ||
}; |
0.0.3 / 2012-12-26 | ||
================== | ||
* Updated applications to Carcass 0.1 style. | ||
0.0.2 / 2012-12-24 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -9,3 +9,3 @@ { | ||
"description": "Authentication middlewares, in Carcass style.", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"contributors": [], | ||
@@ -12,0 +12,0 @@ "keywords": [ |
# Carcass Auth | ||
Authentication middlewares, in Carcass style. | ||
Requires [carcass][1] 0.1.1. | ||
[1]: https://github.com/devo-ps/carcass |
22098
595
8