twisted.conch.test.test_userauth.PasswordChecker(object) class documentationtwisted.conch.test.test_userauth
(View In Hierarchy)
Implements interfaces: twisted.cred.checkers.ICredentialsChecker
A very simple username/password checker which authenticates anyone whose password matches their username and rejects all others.
| Method | requestAvatarId | Validate credentials and produce an avatar ID. |
Validate credentials and produce an avatar ID.
| Parameters | credentials | something which implements one of the interfaces in
credentialInterfaces. |
| Returns | a Deferred
which will fire with a bytes
that identifies an avatar, an empty tuple to specify an authenticated
anonymous user (provided as twisted.cred.checkers.ANONYMOUS)
or fail with UnauthorizedLogin.
Alternatively, return the result itself. | |
| See Also | twisted.cred.credentials | |