summaryrefslogtreecommitdiff
path: root/src/leap/soledad/auth.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/soledad/auth.py')
-rw-r--r--src/leap/soledad/auth.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/leap/soledad/auth.py b/src/leap/soledad/auth.py
index 44755d58..35f4700f 100644
--- a/src/leap/soledad/auth.py
+++ b/src/leap/soledad/auth.py
@@ -21,6 +21,9 @@ Methods for token-based authentication.
"""
+from u1db.remote.http_client import HTTPClientBase
+
+
def set_token_credentials(self, address, token):
self._creds = {'token': (address, token)}
@@ -30,3 +33,5 @@ def _sign_request(self, method, url_query, params):
address, token = self._creds['token']
auth = '%s:%s' % (address, token)
return [('Authorization', 'Token %s' % auth.encode('base64'))]
+ else:
+ return HTTPClientBase._sign_request(self, method, url_query, params)