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.

Method __init__ Undocumented
Method addUser Undocumented
Method requestAvatarId
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 2015-11-29 11:40:45.