Module ringo/middleware/basicauth

Basic Authentication middleware. To apply authentication to parts of your website add this to your list of middlewares and pass the middleware function an object like this with the long string being a SHA1 digest of the user's password:

var authConfig = {
    '/protected/path': {
        admin: "30b93f320076de1304c34673f9f524f7ea7db709"
    }
};
middleware = [
    require('ringo/middleware/basicauth').middleware(authConfig),
];

Functions


middleware (config)

Parameters

config