def get_username(self):
if not self.active or (self.auth_handler is None):<EOL><INDENT>return None<EOL><DEDENT>return self.auth_handler.get_username()<EOL>
Return the username this connection is authenticated for.  If the
session is not authenticated (or authentication failed), this method
returns ``None``.

:return: username that was authenticated (a `str`), or ``None``.