Benjamin Bouvier
0d592e4051
chore: make Client::homeserver not async by changing the underlying kind of mutex
...
The mutex used for the `homeserver` field is very short-lived, so use a std mutex instead, which
makes a few methods sync instead of async.
2023-10-03 14:25:48 +02:00
Jonas Platte
a37c487763
examples: Remove nonsensical room state check
...
Stripped state events are only received for rooms in invite state.
2023-09-19 17:57:39 +02:00
Jonas Platte
0504eafc0a
Upgrade most dependencies
2023-09-18 19:56:06 +02:00
Benjamin Bouvier
284bb9702b
example(oidc): add automatic persist on session update
2023-09-18 14:34:10 +02:00
Benjamin Bouvier
bed0faa143
example(oidc): add sync service integration
...
And allow to run with an insecure server + auto-refresh token + properly restore session using homeserver discovery
2023-09-18 14:34:10 +02:00
Benjamin Bouvier
b9b042ec4a
chore(auth): prefix Session data structures with the auth kind
2023-09-15 13:03:11 +02:00
Benjamin Bouvier
7e142c8132
refactor(oidc): lower cognitive load by removing RegisteredClientData
2023-09-15 13:03:11 +02:00
Benjamin Bouvier
6db19198fc
chore(oidc): restore_registered_client doesn't need to be async
2023-09-15 13:03:11 +02:00
Doug
7d8c6521ed
feat(sdk): Add an action parameter to the OIDC account URL.
2023-09-13 14:14:02 +02:00
Benjamin Bouvier
28ab8e9efc
chore: remove Client::authentication_server_info as it's duplicated from Oidc::authentication_server_info
2023-09-07 10:34:54 +02:00
Jonas Platte
7d674b39aa
Remove matrix-sdk-appservice
...
There is unfortunately no capacity for maintaining it as a first-party
component of the Rust SDK.
2023-09-05 15:40:38 +02:00
Jonas Platte
e02676616f
sdk: Make use of clonable FnOnce in event handlers
2023-09-01 10:42:22 +02:00
Kévin Commaille
0dac5080c6
experimental: Expose an OpenID Connect API
...
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com >
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-08-16 10:39:18 +02:00
Kévin Commaille
a434b97c54
sdk: Don't derive (De)serialize for AuthSession
...
It turns out not all authentication API sessions (i.e. OIDC) are fully (de)serializable.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-08-03 20:47:30 +02:00
Jonas Platte
236f6fff88
Make example dependencies less confusing
2023-07-20 13:28:14 +02:00
Jonas Platte
92df7b22ec
Rename room::Common to Room
...
… and export it at the matrix_sdk crate root.
2023-07-18 15:12:03 +02:00
Jonas Platte
67ef9c3fa0
Remove Room enum
2023-07-18 15:12:03 +02:00
Jonas Platte
512dc18250
Remove room::Invited::accept_invitation in favor of room::Common::join
2023-07-18 15:12:03 +02:00
Jonas Platte
bfed0907ed
Remove wasm_command_bot
2023-07-14 11:07:47 +02:00
Jonas Platte
7bcc886429
Re-format with latest rustfmt
2023-07-03 18:57:05 +02:00
Kévin Commaille
2b3d1080dc
sdk: Allow to support several authentication APIs
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-06-22 11:21:50 +02:00
Kévin Commaille
7298df0db6
sdk: Move Session and SessionTokens to matrix_auth
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-06-22 11:21:50 +02:00
Kévin Commaille
d6f9f08e30
sdk: Split Matrix authentication methods in a separate API
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-06-22 11:21:50 +02:00
Damir Jelić
3db90fbe02
Use the new VerificationRequest signalling in the emoji example
2023-05-23 16:10:05 +02:00
Jonas Platte
78838e67c1
Upgrade dependencies
2023-05-17 17:20:55 +02:00
Jonas Platte
59b1fa00df
Replace futures dependencies with futures-* dependencies
2023-05-17 17:20:55 +02:00
Jonas Platte
cfc8effa66
Move timeline API into a new crate
...
… aimed at interactive user interfaces.
2023-05-17 09:58:31 +02:00
Kévin Commaille
ea826a257d
sdk: Replace Sled with SQLite as defaut store
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-05-08 12:11:10 +02:00
Benjamin Bouvier
be41dcf300
Remove unused dependencies
2023-05-02 15:06:46 +02:00
Kévin Commaille
5a7ea607c6
sdk: Use new filter constructor to enable room members lazy-loading
...
* sdk: Use new filter constructor to enable room members lazy-loading
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-03-25 21:12:09 +01:00
Kévin Commaille
18e6f10367
examples: Also handle SSO login in the login example
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-03-07 15:12:33 +01:00
Kévin Commaille
3139204f4b
fix(examples): Don't use the sled store if the session is not persisted
...
Running the same example twice
borks encryption.
Instead point to an example that shows how to do it.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-02-28 09:20:53 +01:00
Kévin Commaille
1684dbe0a1
feat(examples): Add example to persist a session
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-02-28 09:20:53 +01:00
Jonas Platte
d0c8ec7a22
refactor: Replace remaining usage of futures-signal with eyeball(-im)
2023-02-23 15:08:41 +01:00
Jonas Platte
b96532878b
refactor(sdk): Replace futures-signals with eyeball-im in the timeline
2023-02-20 18:01:31 +01:00
dependabot[bot]
fc8cd2e7e5
chore(deps): bump tokio from 1.24.1 to 1.24.2
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.24.1 to 1.24.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/commits )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-04 08:27:50 +01:00
dependabot[bot]
63c8696cac
chore(deps): bump tokio from 1.22.0 to 1.23.1
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.22.0 to 1.23.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.22.0...tokio-1.23.1 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-07 14:06:32 +01:00
Jonas Platte
262fe5630f
feat(sdk): Implement IntoFuture for LoginBuilder and SsoLoginBuilder
2022-12-07 11:13:44 +01:00
Jonas Platte
3d22b6d5a4
chore: Upgrade Ruma
2022-11-29 15:37:18 +01:00
Jonas Platte
785a3349ab
refactor(sdk)!: Make sync_token accessor private
2022-11-18 14:02:41 +01:00
Jonas Platte
bb6145d581
refactor!: Move large parts of deserialized_responses to matrix-sdk-base
2022-11-17 11:33:37 +01:00
Johannes Becker
bb6cf83a39
refactor(appservice)!: Rename virtual user to appservice user
2022-11-15 15:57:31 +01:00
Jonas Platte
e59acfe28c
refactor: Use let-else to remove boilerplate code
2022-11-15 14:57:46 +01:00
Jonas Platte
4dc0e0ef3c
chore: Upgrade Ruma
2022-11-14 15:01:53 +01:00
Kévin Commaille
93be96c85c
feat(sdk): Add read marker logic to the timeline API
2022-11-08 13:16:09 +01:00
Jonas Platte
3a6d048b9f
refactor(sdk)!: Rename uiaa_response methods to as_uiaa_response
2022-11-03 18:05:04 +01:00
Ivan Enderlin
2b4f4b17c3
chore: Update wasm-bindgen's ecosystem to latest versions.
2022-11-02 08:59:21 +01:00
Damir Jelić
2547d6ed64
fix(crypto): Don't create an infinite amount of streams in the SAS examples
2022-10-25 13:00:27 +02:00
Jonas Platte
50a5ec89e9
chore: Fix more clippy lints
2022-10-25 12:20:07 +02:00
Damir Jelić
4a6208f808
feat(crypto): Add signaling to the SAS verification
...
This patch adds a way for users to listen to changes in the state of a
SAS verification.
This makes it much more pleasant to go through the verification flow and
incidentally easier to document it.
2022-10-24 09:50:17 +02:00