2.0.0 • Published 11 years ago

jungles-auth-simple v2.0.0

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

Jungles Auth Simple

Simple authorization middleware. If a req.session.user is in the administrator array the request will get nexted.

app.use('/administrator', require('jungles-auth-simple').init(['geert.pasteels@gmail.com']));     

Warning

This module only does authorization you still need authentication middleware that sets a req.session.user. Jungles Auth Persona is an example of such using Mozilla Persona.

2.0.0

11 years ago

1.0.0

11 years ago