Fork me on GitHub

Module ringo/middleware/basicauth

Basic Authentication middleware. To apply authentication to parts of your website add something like this to your config.js with the long string being a SHA1 digest of the user's password:

exports.auth = {
    '/protected/path': {
        admin: "30b93f320076de1304c34673f9f524f7ea7db709"
    }
};

Functions


middleware (app)

Parameters

app