--- author: '' category: '' date: 2009/03/22 21:16 description: '' link: '' priority: '' slug: BB799 tags: programming, python title: Juno and middleware type: text updated: 2009/03/22 21:16 url_type: '' --- This is how you add basic authentication to your Juno_ app: .. code-block:: python init({ 'middleware':[('paste.auth.basic.AuthBasicHandler', {'realm':'Admin', 'authfunc':valid_user})], }) Where valid_user is the obvious function that takes user/pass and returns true/false. Not exactly a sophisticated role-based auth, but I don't need that for my app (LDAP's access controls take care of it). .. _juno: http://brianreily.com/project/juno/