2.0.0 • Published 11 years ago

jungles-auth-persona v2.0.0

Weekly downloads
13
License
-
Repository
-
Last release
11 years ago

screenshot

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.

Mount

var auth = require('jungles-authentication-persona');
var app = express(); // Your app
app.mount(auth.init('/admin*'));

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.

Test

mocha.js and should.js is needed.

make test
2.0.0

11 years ago

3.0.0

11 years ago

1.1.0

11 years ago

1.0.1

11 years ago

1.0.0

12 years ago