PyDocs

Nav

Internet Protocols and Support

IMAP4.authenticate

imaplib

method of IMAP4 (source) not WASI
  • IMAP4.authenticate(mechanism, authobject)
Authenticate command - requires response processing.

'mechanism' specifies which authentication mechanism is to
be used - it must appear in <instance>.capabilities in the
form AUTH=<mechanism>.

'authobject' must be a callable object:

        data = authobject(response)

It will be called to process server continuation responses; the
response argument it is passed will be a bytes.  It should return bytes
data that will be base64 encoded and sent to the server.  It should
return None if the client abort response '*' should be sent instead.
Changed in 3.5
  • 3.5: string usernames and passwords are now encoded to utf-8 instead of being limited to ASCII.
0 Examples
No examples for imaplib/IMAP4.authenticate.
See Also
No see-alsos for imaplib/IMAP4.authenticate
0 Notes
No notes for IMAP4.authenticate