David Baker
3e2d845342
Merge remote-tracking branch 'origin/develop' into dbkr/cross_signing
2019-10-28 16:47:16 +00:00
David Baker
de1b545df1
lint
2019-10-28 15:42:42 +00:00
David Baker
3bec28b2ff
make other tests pass
2019-10-28 15:23:58 +00:00
David Baker
8cad116dd7
Make tests pass
...
* Pass the http backend out of makeTestClients so we can tell it
to expect queries and flush requests out
* Change colons to dots in the key events
2019-10-28 14:56:35 +00:00
Hubert Chathi
d8e8dddd25
initial implementation of verification in DMs
2019-10-08 15:44:51 -04:00
Michael Telatynski
b004d1602d
Remove deprecated authedRequestWithPrefix and requestWithPrefix
...
replacing as documented with authedRequest
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-07-29 12:25:38 +01:00
Travis Ralston
a8d200dd02
Merge pull request #993 from matrix-org/travis/sas-is-done
...
End the verification timer when verification is done
2019-07-11 08:20:30 -06:00
Travis Ralston
f80af68686
End the verification timer when verification is done
...
Fixes https://github.com/matrix-org/matrix-js-sdk/issues/980
This also improves cleanliness in the tests to cancel/terminate timers when needed.
2019-07-10 14:51:12 -06:00
Travis Ralston
fe4ac06f43
Use the correct media endpoints
2019-07-10 13:24:11 -06:00
Travis Ralston
a3c8eac38b
Process ephemeral events outside timeline handling
2019-07-10 10:26:21 -06:00
Hubert Chathi
7f8b9de560
offer to upgrade device verifications to cross-signing
2019-07-08 12:26:00 -04:00
Hubert Chathi
761f22b63d
minor cleanups
2019-07-08 12:25:28 -04:00
Hubert Chathi
8d1d657c44
add unit test for backups signed by cross-signing key
2019-07-03 19:16:26 -04:00
Hubert Chathi
1cae5e8b97
fix unit tests to match event name changes
2019-06-27 23:33:07 -04:00
Hubert Chathi
07c2e34d87
Merge branch 'develop' into dbkr/cross_signing
2019-06-14 22:57:02 -04:00
Bruno Windels
811a98ad19
whitespace, newlines
2019-06-13 12:28:02 +02:00
Bruno Windels
b005b75331
comment typo
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-06-13 12:26:38 +02:00
Bruno Windels
a9f9e2cf35
comment typo
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-06-13 12:26:38 +02:00
Bruno Windels
7d2f7fae45
fix tests
2019-06-13 12:26:38 +02:00
Hubert Chathi
4c6fa89053
various cross-signing fixes and improvements
2019-06-12 11:47:12 -04:00
Hubert Chathi
6f6e7ea921
verify cross-signing key with SAS
2019-06-05 15:27:31 -04:00
Hubert Chathi
0c714ba4a1
some cleanups
2019-06-05 15:24:03 -04:00
Hubert Chathi
6a77df7b41
Merge branch 'develop' into dbkr/cross_signing
2019-06-05 12:48:17 -04:00
Travis Ralston
26c1c6db3b
Fix tests and populate the right IS validation object
2019-06-04 23:51:41 -06:00
Hubert Chathi
4a9a1b40e9
initial implementation of secret storage and sharing
2019-06-04 15:04:45 -04:00
J. Ryan Stinnett
842ce30190
Fix lint error in login.spec.js
2019-05-31 09:54:47 +01:00
Travis Ralston
a0456dc430
Merge pull request #924 from jkasun/loglevel-extend
...
Extend loglevel logging for the whole project
2019-05-30 11:20:49 -06:00
Hubert Chathi
95131c7658
add test for syncing trust on another user
2019-05-29 17:01:25 -04:00
Hubert Chathi
936eef194a
minor fixes to tests
2019-05-29 17:01:13 -04:00
Hubert Chathi
53804cac5c
save cross-signing keys from sync and verify new keys for user
2019-05-28 22:28:54 -04:00
Sergii Stotskyi
4ef970b4da
fix(login): saves access_token and user_id after login for all login types
...
Signed-off-by: Sergii Stotskyi <sergiy.stotskiy@gmail.com >
Fixes #876
2019-05-28 17:47:49 +03:00
Hubert Chathi
193ad9e09d
use 3 keys for cross-signing
2019-05-23 18:18:21 -04:00
Janith Kasun
de8063a43a
Merge branch 'develop' into loglevel-extend
2019-05-19 09:40:38 +05:30
jkasun
a73dabcb67
Console logging to loglevel
2019-05-19 09:29:40 +05:30
J. Ryan Stinnett
761806c678
Add support for class properties
...
This enables compiler and linting features to allow class properties like we do
in the React SDK.
2019-05-13 13:52:37 +01:00
Hubert Chathi
405451d783
complete some more unit tests
2019-05-03 23:23:08 -04:00
Hubert Chathi
b0275afac2
remove some debugging lines
2019-05-03 23:22:51 -04:00
Hubert Chathi
ae71f41138
add missing files
2019-05-03 18:12:17 -04:00
Travis Ralston
af93401385
Use more appropriate errors for some situations
2019-04-16 11:13:36 -06:00
Travis Ralston
0f2f041d8b
Use constants for autodiscovery errors
...
To ease usage
2019-04-15 22:04:24 -06:00
Travis Ralston
fe47435fc7
Fix tests for autodiscovery
2019-04-15 21:12:17 -06:00
Hubert Chathi
0a82c84006
Merge pull request #882 from uhoreg/fix_mac
...
support both the incorrect and correct MAC methods
2019-04-05 16:45:45 -04:00
Hubert Chathi
01af303d63
fix the selection of the verification methods, and test more things
2019-04-04 14:08:30 -04:00
J. Ryan Stinnett
6ba7e85e24
Ensure we have crypto before accessing it in Room
model
...
If crypto startup has failed, we shouldn't try to access any of its methods.
This fixes a variant of this in the `Room` model.
2019-04-04 12:06:41 +01:00
Hubert Chathi
d1e64d0cfb
support both the incorrect and correct MAC methods
...
also do some refactoring to make it easier to support choices in the other
methods in the future
2019-04-02 23:36:49 -04:00
J. Ryan Stinnett
5a26503da7
Remove sessionStore
to cryptoStore
migration path
...
The code to migrate from the `sessionStore` to `cryptoStore` originally appeared
in https://github.com/matrix-org/matrix-js-sdk/pull/584 (2017-12-06). At this
point, it seems safe to assume most sessions that need migrating have already
done so. Removing this code simplifies store handling and removes the
`sessionStore` from most places in JS SDK.
2019-03-20 16:56:47 +00:00
Hubert Chathi
79ca235e7c
only create one session at a time per device
2019-03-12 16:04:26 -04:00
Hubert Chathi
81946294d8
use lolex to fake the timer
2019-03-06 14:42:52 -05:00
Hubert Chathi
9e29289dcc
use a different transaction ID when re-sending a key request
2019-03-06 12:02:48 -05:00
Hubert Chathi
5480e8e1d5
refactor key sharing requests
...
use sendRoomKeyRequest with a new resend flag, instead of cancelRoomKeyRequest,
when requesting keys, so that we make sure that we send a new request if there
is no previous request
fixes https://github.com/vector-im/riot-web/issues/6838
2019-03-04 17:09:56 -05:00