diff options
author | Bruno Wagner <bwagner@riseup.net> | 2016-10-18 20:09:01 -0200 |
---|---|---|
committer | Bruno Wagner <bwagner@riseup.net> | 2016-10-18 20:09:01 -0200 |
commit | d7207c00ba40494262305a352c44e2d5e627cb85 (patch) | |
tree | 5551bddb9ac94581227b26dc825d10f75e4c7ff2 /service/pixelated/extensions | |
parent | 75b633a173f217ccd508cf6b5306a3e93f79c2e6 (diff) |
Removed extension that was unused for a long time
Diffstat (limited to 'service/pixelated/extensions')
-rw-r--r-- | service/pixelated/extensions/shared_db.py | 16 |
1 files changed, 0 insertions, 16 deletions
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 |