def _setup_auth(self, timeout=5): """ Start the thread that will make sure the xurllib always has a "fresh" session. The thread will call is_logged() and login() for each enabled auth plugin every "timeout" seconds. If there is a specific need to make sure that the session is fresh before performing any step, the developer needs to run the force_auth_login() method. """ auth_plugins = self._w3af_core.plugins.plugins['auth'] if auth_plugins: self._auth_consumer = auth(auth_plugins, self._w3af_core, timeout) self._auth_consumer.start() self._auth_consumer.force_login()
def _setup_auth(self, timeout=5): """ Start the thread that will make sure the xurllib always has a "fresh" session. The thread will call is_logged() and login() for each enabled auth plugin every "timeout" seconds. If there is a specific need to make sure that the session is fresh before performing any step, the developer needs to run the force_auth_login() method. """ auth_plugins = self._w3af_core.plugins.plugins['auth'] if auth_plugins: self._auth_consumer = auth(auth_plugins, self._w3af_core, timeout) self._auth_consumer.start() self._auth_consumer.force_login()