summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/pixelated/bitmask_libraries/session.py2
-rw-r--r--service/test/unit/bitmask_libraries/test_abstract_leap.py2
-rw-r--r--service/test/unit/bitmask_libraries/test_smtp_cert_downloader.py1
3 files changed, 0 insertions, 5 deletions
diff --git a/service/pixelated/bitmask_libraries/session.py b/service/pixelated/bitmask_libraries/session.py
index 095f23cc..1d4d8180 100644
--- a/service/pixelated/bitmask_libraries/session.py
+++ b/service/pixelated/bitmask_libraries/session.py
@@ -177,7 +177,6 @@ class SmtpCertDownloader(object):
def download(self):
cert_url = '%s/%s/smtp_cert' % (self._provider.api_uri, self._provider.api_version)
- cookies = {"_session_id": self._auth.session_id}
headers = {}
headers["Authorization"] = 'Token token="{0}"'.format(self._auth.token)
params = {'address': self._auth.username}
@@ -186,7 +185,6 @@ class SmtpCertDownloader(object):
params=params,
data=params,
verify=LeapCertificate(self._provider).provider_api_cert,
- cookies=cookies,
timeout=self._provider.config.timeout_in_s,
headers=headers)
response.raise_for_status()
diff --git a/service/test/unit/bitmask_libraries/test_abstract_leap.py b/service/test/unit/bitmask_libraries/test_abstract_leap.py
index 521d9cd4..6f2351cd 100644
--- a/service/test/unit/bitmask_libraries/test_abstract_leap.py
+++ b/service/test/unit/bitmask_libraries/test_abstract_leap.py
@@ -26,7 +26,6 @@ class AbstractLeapTest(unittest.TestCase):
def setUp(self):
self._uuid = str(uuid4())
- self._session_id = str(uuid4())
self._token = str(uuid4())
self.leap_home = os.path.join(tempfile.mkdtemp(), 'leap')
@@ -39,7 +38,6 @@ class AbstractLeapTest(unittest.TestCase):
self.auth = Mock(username='test_user',
api_server_name='some-server.test',
uuid=self._uuid,
- session_id=self._session_id,
token=self._token)
self.nicknym = MagicMock()
diff --git a/service/test/unit/bitmask_libraries/test_smtp_cert_downloader.py b/service/test/unit/bitmask_libraries/test_smtp_cert_downloader.py
index cfc9353d..2a4afa40 100644
--- a/service/test/unit/bitmask_libraries/test_smtp_cert_downloader.py
+++ b/service/test/unit/bitmask_libraries/test_smtp_cert_downloader.py
@@ -57,7 +57,6 @@ class TestSmtpCertDownloader(unittest.TestCase):
self._provider.server_name = 'some.host.tld'
self._auth.username = USERNAME
- self._auth.session_id = 'some session id'
self._auth.token = 'some token'
def tearDown(self):