Go to the latest version of this document.

# ``twisted`.`mail`.`smtp`.`LOGINCredentials``

class documentation

`class LOGINCredentials(_lcredentials): (source)`

View In Hierarchy

`LOGINCredentials` generates challenges for LOGIN authentication.

For interoperability with Outlook, the challenge generated does not exactly match the one defined in the draft specification.

Method | `__init__` | Undocumented
Instance Variable | `challenges` | Undocumented

Inherited from `LOGINCredentials`:

Method | `getChallenge` | Return a client challenge.
Method | `moreChallenges` | Are there more challenges than just the first? If so, callers should challenge clients with the result of `getChallenge`, and check their response with `setResponse` in a loop until this returns `False`
Method | `setResponse` | Extract a username and possibly a password from a response and assign them to `username` and `password` instance variables.
Instance Variable | `responses` | Undocumented

Inherited from `UsernamePassword` (via `LOGINCredentials`):

Method | `checkPassword` | Validate these credentials against the correct password.
Instance Variable | `password` | Undocumented
Instance Variable | `username` | Undocumented

def __init__(self): (source)
overrides `twisted.mail._cred.LOGINCredentials.__init__`

Undocumented

challenges: `list[bytes]` = (source)
overrides `twisted.mail._cred.LOGINCredentials.challenges`

Undocumented