Class t.c.c.InMemoryUsernamePasswordDatabaseDontUse:

Part of twisted.cred.checkers View Source View In Hierarchy

Implements interfaces: twisted.cred.checkers.ICredentialsChecker

An extremely simple credentials checker.

This is only of use in one-off test programs or examples which don't want to focus too much on how credentials are verified.

You really don't want to use this for anything else. It is, at best, a toy. If you need a simple credentials checker for a real application, see FilePasswordDB.
Line # Kind Name Docs
77 Method __init__ Undocumented
80 Method addUser Undocumented
89 Method requestAvatarId
83 Method _cbPasswordMatch Undocumented
def __init__(self, **users): (source)
Undocumented
def addUser(self, username, password): (source)
Undocumented
def _cbPasswordMatch(self, matched, username): (source)
Undocumented
def requestAvatarId(self, credentials): (source)
Parameterscredentialssomething which implements one of the interfaces in self.credentialInterfaces.
Returnsa Deferred which will fire a string which identifies an avatar, an empty tuple to specify an authenticated anonymous user (provided as checkers.ANONYMOUS) or fire a Failure(UnauthorizedLogin). Alternatively, return the result itself.
See Alsotwisted.cred.credentials
API Documentation for Twisted, generated by pydoctor at 2008-10-26 16:12:37.