Module stick/middleware/basicauth
Basic Authentication middleware.
To apply authentication to parts of your website configure this middleware and call the app's basicauth method with the URI path, user name, and SHA1 digest of the user's password as arguments for each path you want to protect:
Example
app.configure("basicauth"); app.basicauth('/protected/path', 'admin', '30B93F320076DE1304C34673F9F524F7EA7DB709');
middleware (next, app)
Parameters
Function | next | the wrapped middleware chain |
Object | app | the Stick Application object |
Returns
Function | a JSGI middleware function |