Tom Hacohen
fc52194d39
Journalmanager: rename CRUD method to be more consistent.
...
All are now on of: list, delete, create and update.
2017-04-20 20:48:12 +01:00
Tom Hacohen
e15a26af9c
User info: fix version detection, and don't verify on fetch.
...
We were not detecting the version correctly, but always just assumed
latest version, which is obviously wrong.
In addition, before this commit we used to automatically verify on
fetch, which wasn't flexible enough for some use cases. This fixes that
too.
2017-04-20 19:48:46 +01:00
Tom Hacohen
beccb33904
Journal: use journal keys if available.
...
If a journal has a key set to it (usually used for shared journals), use
it instead of the symmetric key. The key of the journal is asymmetrically
encrypted using our keypair.
2017-04-20 19:48:45 +01:00
Tom Hacohen
efe832ddb4
Journalmanager: Add api for the members endpoint.
...
This API controls the members of a journal, that is, access control.
2017-04-20 19:48:45 +01:00
Tom Hacohen
11e37dbd1e
Journalmanager: add API to interact with the UserInfo
...
This is where the keypair is stored on the server. Both the public
facing public key, and the encrypted private key
2017-04-20 19:48:45 +01:00
Tom Hacohen
e836b4c716
Crypto: Add basic asymmetric encryption methods
2017-04-20 19:48:45 +01:00
Tom Hacohen
fcbf26a03b
Tests: Add journalentrymanager tests.
2017-04-06 19:05:48 +01:00
Tom Hacohen
7cefb64db2
CollectionInfo: rename url -> uid.
2017-04-06 17:28:03 +01:00
Tom Hacohen
2e7ac65883
Tests: Add some basic tests.
2017-04-06 17:25:06 +01:00
Tom Hacohen
d41b7827ee
Tests: Move constants to a shared file.
2017-04-06 17:01:18 +01:00
Tom Hacohen
9ba0f39660
Tests: Add basic authenticator tests.
2017-04-06 17:01:18 +01:00
Tom Hacohen
94f2682195
Tests: add basic encryption tests.
2017-04-06 17:01:18 +01:00