view LocalAuth.py.sample @ 8:4d61c56473c2 default tip

Fixed a problem where some feeds would have unpickleable expatreaders.
author Atul Varma <varmaa@toolness.com>
date Fri, 18 Apr 2008 17:13:02 -0700
parents f7f1b66283c6
children
line wrap: on
line source

from AuthHandlers import BasicAuthHandler
from AuthHandlers import DigestAuthHandler

def getAuthHandlers():
    basicAuth = BasicAuthHandler()
    digestAuth = DigestAuthHandler()
    basicAuth.add_password( "Private",
                            "intranet.mozilla.org",
                            "my_mozilla_username",
                            "my_mozilla_password" )
    digestAuth.add_password( "lj",
                             ("frostedelves.livejournal.com",),
                             "my_lj_username",
                             "my_lj_password" )
    return [basicAuth, digestAuth]

IMAP_AUTH = {
    "mail.mozilla.com" : dict( username = "my_mozilla_username",
                               password = "my_mozilla_password" ),
    "imap.gmail.com" : dict( username = "my_gmail_username",
                             password = "my_gmail_password" )
}