Authentication app that uses Mozilla Persona. Can be mounted onto an express.js app.

Mozilla Persona Authentication app for Express.js. This app is developed for Jungles but can be used with any Express.js application. In case you didn't know: Express.js allows you to break your project into small apps which you can mount onto a base app.

var auth = require('jungles-authentication-persona');
var app = express(); // Your app 

This will redirect to the /login if session.user is undefined and the user visits /admin*. If you need multiple urls you can pass an array.

mocha.js and should.js is needed.

make test