Damir Jelić
4175e6badf
feat(bindings/ffi): Allow clients to be restored using only an access token
...
This functionality is important to allow clients to log in using an OIDC server. The OIDC server returns only an access token, the client needs to fetch the user ID and device ID from the Matrix server separately.
This lives in the bindings for now since OIDC support in Matrix is being actively developed.
2022-07-26 17:10:50 +02:00
Benjamin Kampmann
008c0f4659
Merge pull request #860 from matrix-org/doug/client-path
...
Use a consistent store path when logging in through the FFI.
2022-07-26 16:33:32 +02:00
Doug
a951a273e7
Rebase and rename method.
...
Add a device ID parameter to restore_with_access_token
2022-07-26 15:00:02 +01:00
Doug
f13f590b7f
Add login_access_token to the FFI auth service.
2022-07-26 15:00:02 +01:00
Doug
1eadd0ba2d
Revert changes to store path. Use whoami for path.
2022-07-26 14:50:51 +01:00
Doug
3b8a2ca2d7
Add missing path method to IndexeddbStore.
2022-07-26 14:50:51 +01:00
Doug
b6b1f904e0
Fix clippy warning.
2022-07-26 14:50:51 +01:00
Doug
f31528c926
Allow a client to be built without a store path.
...
Throw an error on login if it is missing.
2022-07-26 14:50:51 +01:00
Doug
05fab8c394
Add a store_path method on the FFI client.
2022-07-26 14:48:37 +01:00
Jonas Platte
e37e62c92c
chore(sdk): Fix event handler test
...
It wasn't actually testing typing and power-levels event handlers before.
2022-07-26 11:11:10 +02:00
Jonas Platte
d162dd07d5
refactor(sdk): Split SyncEvent::ID into KIND and TYPE
...
This should make things slightly easier to read.
2022-07-25 20:33:43 +02:00
Jonas Platte
42d3ebbe87
chore: Remove ugly commas right before closing parentheses
2022-07-25 20:30:13 +02:00
Jonas Platte
4e7bd6760a
chore: Replace qualified uses of tracing macros with imports
2022-07-25 20:30:13 +02:00
Jonas Platte
ab9476960b
chore(sled): Fix line length overflow
2022-07-25 20:30:13 +02:00
Jonas Platte
b3092bd1d9
chore(indexeddb): Remove unnecessary .to_string() call in test code
2022-07-25 20:30:13 +02:00
Jonas Platte
c2ad4b7d82
fix(appservice): Respond with a non-stringified empty object
...
warp::reply::json() serializes its argument to JSON, passing it an
already-serialized JSON string doesn't do the right thing.
2022-07-25 20:30:13 +02:00
Jonas Platte
f8e729f7f3
chore: Use implicit named arguments for formatting macros more
2022-07-25 20:30:12 +02:00
Jonas Platte
5c88bd1595
refactor(sdk): Remove ID from EventHandler
...
Turns out it wasn't actually needed.
2022-07-25 20:30:12 +02:00
Damir Jelić
204441f2b3
Fix a formatting issue in a doc example
...
Co-authored-by: Jonas Platte <jplatte@matrix.org >
2022-07-25 19:06:15 +02:00
Damir Jelić
79d13148fb
chore: Remove TryFrom/TryInto imports
2022-07-25 19:06:15 +02:00
Julian Sparber
c247de95b6
client: Remove redudant delay after sync error
...
If the last sync was less then a 1s ago we wait for a 1s, it doesn't
make sense to wait an additional second on an error. Also the stream
sync api returns the error after a delay of 1s, which doesn't make
sense.
2022-07-25 12:01:28 +02:00
Johannes Becker
6d87dd8011
refactor(appservice)!: Make USER_MEMBER const private"
2022-07-22 09:33:42 +02:00
Jonas Platte
4b6a28da0d
chore(sdk): Fix line length overflow in common.rs
2022-07-21 19:24:42 +02:00
Benjamin Kampmann
bf6e1b594d
fix(integration-tests): requires multi-threading feature from tokio
2022-07-21 18:06:48 +02:00
Benjamin Kampmann
59332e46b5
switch to multithreaded tokio test runner
2022-07-21 17:58:50 +02:00
Benjamin Kampmann
c070b96a68
Merge remote-tracking branch 'origin/main' into gnunicorn/issue833
2022-07-21 17:37:49 +02:00
Benjamin Kampmann
d68d6ead69
chore: let's check the logs
2022-07-21 17:31:58 +02:00
Benjamin Kampmann
f34c2f0574
ci: fix typos
2022-07-21 17:28:38 +02:00
Benjamin Kampmann
aad167b792
style(indexeddb): fixing rust fmt
2022-07-21 17:25:43 +02:00
Benjamin Kampmann
814a30064f
fix(sled-inspector): new builder fn
2022-07-21 17:18:43 +02:00
Ivan Enderlin
6ce5d0b507
chore(crypto-js): Add cliff.toml for git-cliff.
2022-07-21 15:50:11 +02:00
Ivan Enderlin
db7824efbd
chore(crypto-nodejs): Update Conventional Commits types.
2022-07-21 15:49:26 +02:00
Ivan Enderlin
ee4702d04a
feat(bindings/crypto-js) Update package name, and use package scope.
2022-07-21 15:47:55 +02:00
Ivan Enderlin
d68b6ea64d
doc: Fix formatting.
2022-07-21 15:47:00 +02:00
Ivan Enderlin
49bc950fdd
doc: Add missing scope for matrix-sdk-crypto.
2022-07-21 15:46:21 +02:00
Ivan Enderlin
7001113877
doc: Propose conventional commits scopes & types
...
doc: Propose conventional commits scopes & types
2022-07-21 15:44:43 +02:00
Ivan Enderlin
c0d3099e2e
doc: Propose conventional commits types.
2022-07-21 15:43:31 +02:00
Ivan Enderlin
49e5d73d83
doc: Propose conventional commits scopes.
2022-07-21 13:59:31 +02:00
Benjamin Kampmann
2ffaaeeae2
docs(sled): fixing examples and utils
2022-07-21 13:18:15 +02:00
Benjamin Kampmann
60eef8967f
fix(sled-store): apply review requests
2022-07-21 11:52:04 +02:00
Benjamin Kampmann
ed893ed5b0
Merge remote-tracking branch 'origin/main' into gnunicorn/issue756
2022-07-21 11:38:10 +02:00
Jonas Platte
4e2bd14a27
chore: Silence buggy clippy lint
2022-07-21 11:30:13 +02:00
Jonas Platte
0b3b757120
refactor: Make Store type internal to base crate
2022-07-21 11:30:13 +02:00
Jonas Platte
63d01dd20e
refactor(base): Stop using Store type in store integration tests
2022-07-21 11:30:13 +02:00
Jonas Platte
a43005dec2
refactor(base): Add RoomInfo::new constructor
2022-07-21 11:30:13 +02:00
Jonas Platte
4187aa400f
refactor: Remove Store type usage from sled-state-inspector
...
Requires using more explicit syntax for some calls because SledStore has
methods of the same names with different (harder to use) signatures.
2022-07-21 11:30:13 +02:00
Jonas Platte
cf8f3bf7cc
refactor(sdk)!: Update MessageOptions API once again
...
… to match the latest changes in Ruma.
2022-07-21 11:18:09 +02:00
Jonas Platte
5b66bed1f0
chore: Remove unused imports from example
2022-07-21 11:18:09 +02:00
Benjamin Kampmann
1668c173e6
Merge pull request #836 from matrix-org/ben-release-crypto-nodes-beta0
...
Release crypto-nodejs beta1
2022-07-21 10:59:46 +02:00
Jonas Platte
76fd9bd963
fix(sdk): Call to-device handlers
2022-07-21 10:30:13 +02:00