def auth_complete(self):
        """Whether the authentication handshake is complete during
        connection initialization.

        :rtype: bool
        """
        timeout = False
        auth_in_progress = False
        if self._connection.cbs:
            timeout, auth_in_progress = self._auth.handle_token()
            if timeout is None and auth_in_progress is None:
                _logger.debug("No work done.")
                return False
        if timeout:
            raise compat.TimeoutException("Authorization timeout.")
        if auth_in_progress:
            self._connection.work()
            return False
        return True
def auth_complete ( self ) : timeout = False auth_in_progress = False if self . _connection . cbs : timeout , auth_in_progress = self . _auth . handle_token ( ) if timeout is None and auth_in_progress is None : _logger . debug ( "No work done." ) return False if timeout : raise compat . TimeoutException ( "Authorization timeout." ) if auth_in_progress : self . _connection . work ( ) return False return True
Whether the authentication handshake is complete during
        connection initialization.

        :rtype: bool