MCPcopy Create free account
hub / github.com/RobinMeis/MITMsmtp / readAuth

Method readAuth

MITMsmtp/SMTPHandler.py:115–124  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

113 to the message object
114 """
115 def readAuth(self):
116 line = self.readLine()
117 authMethod = self.server.authHandler.matchMethod(line)
118 if (authMethod == None):
119 raise ValueError("Unsupported Authentication Type requested by client: " + line)
120
121 self.auth = authMethod(self, line)
122 username = self.auth.getUsername()
123 password = self.auth.getPassword()
124 self.message.setLogin(username, password)
125
126 """
127 Reads the senders mail address and passes it to the message object

Callers 1

handleMethod · 0.95

Calls 6

readLineMethod · 0.95
authMethodClass · 0.85
getUsernameMethod · 0.80
getPasswordMethod · 0.80
setLoginMethod · 0.80
matchMethodMethod · 0.45

Tested by

no test coverage detected