diff options
author | drebs <drebs@leap.se> | 2013-04-30 15:37:37 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-04-30 15:37:37 -0300 |
commit | 1b9009c0b67e6209abbb7047b1edea7961bd3256 (patch) | |
tree | 5059da0cdee2bb5ad7177cdc3b703bfdd02774df /src/leap/soledad/auth.py | |
parent | b567343c7b4daa54a05ed31592078fc69966f421 (diff) |
Update tests with monkey patching to always use our SyncTarget.
Diffstat (limited to 'src/leap/soledad/auth.py')
-rw-r--r-- | src/leap/soledad/auth.py | 5 |
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) |