diff options
| author | drebs <drebs@leap.se> | 2013-04-30 18:29:15 -0300 | 
|---|---|---|
| committer | drebs <drebs@leap.se> | 2013-04-30 18:29:15 -0300 | 
| commit | 520221d2bea114ff0191d8e47ce6c085040dfca2 (patch) | |
| tree | 4fdb6f375b633228c2da9cbd81eb7865bd7a738e /src/leap/soledad/shared_db.py | |
| parent | 2317a5a38832b5a65bacdbb99b7b5c7ed948d750 (diff) | |
Remove unauth requests.
Diffstat (limited to 'src/leap/soledad/shared_db.py')
| -rw-r--r-- | src/leap/soledad/shared_db.py | 25 | 
1 files changed, 2 insertions, 23 deletions
| diff --git a/src/leap/soledad/shared_db.py b/src/leap/soledad/shared_db.py index dbb78d97..02ff8667 100644 --- a/src/leap/soledad/shared_db.py +++ b/src/leap/soledad/shared_db.py @@ -54,12 +54,8 @@ class Unauthorized(Exception):  class SoledadSharedDatabase(http_database.HTTPDatabase):      """ -    This is a shared remote database that holds users' encrypted keys. - -    An authorization token is attached to every request other than -    get_doc_unauth, which has the purpose of retrieving encrypted content from -    the shared database without the need to associate user information with -    the request. +    This is a shared recovery database that enables users to store their +    encryption secrets in the server and retrieve them afterwards.      """      # TODO: prevent client from messing with the shared DB.      # TODO: define and document API. @@ -124,20 +120,3 @@ class SoledadSharedDatabase(http_database.HTTPDatabase):          """          http_database.HTTPDatabase.__init__(self, url, document_factory,                                              creds) - -    def get_doc_unauth(self, doc_id): -        """ -        Modified method to allow for unauth request. - -        This is the only (public) way to make an unauthenticaded request on -        the shared database. - -        @param doc_id: The document id. -        @type doc_id: str - -        @return: The requested document. -        @rtype: Document -        """ -        db = http_database.HTTPDatabase(self._url.geturl(), -                                        document_factory=self._factory) -        return db.get_doc(doc_id) | 
