From d7207c00ba40494262305a352c44e2d5e627cb85 Mon Sep 17 00:00:00 2001 From: Bruno Wagner Date: Tue, 18 Oct 2016 20:09:01 -0200 Subject: Removed extension that was unused for a long time --- service/pixelated/extensions/shared_db.py | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 service/pixelated/extensions/shared_db.py (limited to 'service/pixelated/extensions/shared_db.py') diff --git a/service/pixelated/extensions/shared_db.py b/service/pixelated/extensions/shared_db.py deleted file mode 100644 index b433dd50..00000000 --- a/service/pixelated/extensions/shared_db.py +++ /dev/null @@ -1,16 +0,0 @@ -from leap.soledad.client.auth import TokenBasedAuth -import base64 -from u1db import errors - - -def patched_sign_request(self, method, url_query, params): - if 'token' in self._creds: - uuid, token = self._creds['token'] - auth = '%s:%s' % (uuid, token) - return [('Authorization', 'Token %s' % base64.b64encode(auth))] - else: - raise errors.UnknownAuthMethod( - 'Wrong credentials: %s' % self._creds) - - -# TokenBasedAuth._sign_request = patched_sign_request -- cgit v1.2.3