Juno and middleware

2009-03-22 21:16:13

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).

blog comments powered by Disqus

View My Stats