Juno and middleware
This is how you add basic authentication to your Juno app:
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).