Home | History | Annotate | Download | only in test

Lines Matching refs:AUTH

680     AUTH = 99    # Add protocol state to enable auth testing.
688 # AUTH related stuff. It would be nice if support for this were in smtpd.
690 if self.smtp_state == self.AUTH:
707 if not self.extended_smtp or 'AUTH' not in self._extrafeatures:
708 self.push('500 Error: command "AUTH" not recognized')
716 self.push('501 Syntax: AUTH <mechanism> [initial-response]')
725 self.smtp_state = self.AUTH
781 # end AUTH related stuff.
960 self.serv.add_feature("AUTH PLAIN")
967 self.serv.add_feature("AUTH LOGIN")
974 self.serv.add_feature("AUTH CRAM-MD5")
982 self.serv.add_feature("AUTH BOGUS PLAIN LOGIN CRAM-MD5")
991 self.serv.add_feature("AUTH {}".format(mechanism))
999 resp = smtp.auth(mechanism, getattr(smtp, method))
1035 #TODO: add tests for correct AUTH method fallback now that the
1267 # RFC 4954's AUTH command allows for an optional initial-response.
1268 # Not all AUTH methods support this; some require a challenge. AUTH
1273 # AUTH PLAIN <initial-response> with the response base 64
1312 self.serv.add_feature('AUTH PLAIN')
1319 self.serv.add_feature('AUTH PLAIN')
1324 code, response = smtp.auth('plain', smtp.auth_plain)