diff options
author | drebs <drebs@leap.se> | 2013-04-25 23:15:06 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-04-25 23:15:06 -0300 |
commit | cc9537b9c73c6f502dc4576df0aee4409e887d47 (patch) | |
tree | 368b8e4d690d2cdf18f87f2d0e78f4afdb3b8153 /src/leap/soledad/__init__.py | |
parent | 2ef514b02fa37a0a2ebac0bb9668543e29033a7f (diff) |
Add token auth infrastructure.
Diffstat (limited to 'src/leap/soledad/__init__.py')
-rw-r--r-- | src/leap/soledad/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/soledad/__init__.py b/src/leap/soledad/__init__.py index a736d32b..06f7c755 100644 --- a/src/leap/soledad/__init__.py +++ b/src/leap/soledad/__init__.py @@ -667,7 +667,7 @@ class Soledad(object): """ return self._db.resolve_doc(doc, conflicted_doc_revs) - def sync(self, url): + def sync(self, url, creds=None): """ Synchronize the local encrypted replica with a remote replica. @@ -679,7 +679,7 @@ class Soledad(object): @rtype: str """ # TODO: create authentication scheme for sync with server. - local_gen = self._db.sync(url, creds=None, autocreate=True) + local_gen = self._db.sync(url, creds=creds, autocreate=True) events.signal(events.events_pb2.SOLEDAD_DONE_DATA_SYNC, self._address) return local_gen |