node package manager


very basic security layer for express/connect


expresswall is a basic authentication middleware for express.js. It is heavily inspired by parts of Symfony2's Security component.

expresswall takes care of redirecting users to the login or denying access to secured ressources. You just defined whats secure or public by URL patterns.

expresswall can be installed via npm.

npm install expresswall
    var expresswall = require('expresswall')
    var wall = expresswall({
      areas: {
        static: { pattern: /^\/(css|js|font)/ },
        login: { pattern: /^\/login/ },
        secure: {
            pattern: /^\//,
            secured: true,
            redirect_to_login: true
    app.use(express.session({ … }))