Damir Jelić
4fdc78f565
doc: Shorten one of our doc examples
2024-07-26 13:29:37 +02:00
Damir Jelić
4883f3fa77
examples: Add a reset-cross-signing command to the oidc example
2024-07-24 11:03:54 +02:00
Ivan Enderlin
bacf85d807
chore: Use anyhow from the workspace.
2024-07-11 11:16:17 +02:00
Ivan Enderlin
b163368be0
chore: Use futures-util from the workspace.
2024-07-11 11:16:17 +02:00
Ivan Enderlin
5ebfd7bc55
chore: Use tokio from the workspace.
2024-07-11 11:16:17 +02:00
Ivan Enderlin
0d264d209f
chore: Use tracing-subscriber from the workspace.
2024-07-11 11:16:17 +02:00
Damir Jelić
6dde95c865
examples: Add a recovery command to the oidc-cli example
...
This adds support to input your recovery key to the OIDC example which
will allow the OIDC example client to be verified and have access to all
the secrets (cross-signing keys and the backup recovery key).
Not particularly useful right now, but once the OIDC example is able to
log in other devices via a QR code it becomes necessary to have access
to all the secrets.
2024-06-20 13:43:14 +02:00
Benjamin Bouvier
e22162a23a
base: rename computed_display_name to compute_display_name and remove computed_ in the cached one
2024-06-11 15:44:53 +02:00
Damir Jelić
6672302684
chore: Make the url crate a workspace dependency
2024-05-14 10:47:22 +02:00
Damir Jelić
6f2d8e0e50
chore: Fix some clippy warnings
2024-05-02 17:12:19 +02:00
Benjamin Bouvier
90bed18415
ffi: make the name method sync again
...
Also:
- rename `display_name` to `computed_display_name` in several places,
and reflect that change into a few callers
- simplify slightly the `computed_display_name()` method
2024-05-01 14:32:38 +02:00
Damir Jelić
fb9982fb48
oidc: Use the correct types to compare the status codes in the oidc example ( #3363 )
2024-04-30 13:02:29 +00:00
Kévin Commaille
ea1a01000f
sdk: Use the GET /auth_issuer endpoint for OIDC
...
The well-known method is deprecated.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2024-04-30 12:33:31 +02:00
Kévin Commaille
0e0a406cb1
Replace hyper with axum for oidc_cli example
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2024-04-27 19:37:46 +02:00
Kévin Commaille
da2abccc0d
chore: Disable clippy::assigning_clones lint
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2024-04-02 15:05:41 +02:00
Jonas Platte
24b879bbc0
Clean up Cargo manifest formattting
2024-01-04 10:02:07 +01:00
Jonas Platte
4485abbfdf
Replace all two uses of async-std with equivalent tokio functionality
2023-11-02 17:21:48 +01:00
Benjamin Bouvier
8de33f68f3
integration tests: randomize user names better
...
In the previous situation, running the tests with `cargo test` would sometimes fail because despite appending the number of milliseconds since
the start of epoch to the user names, some user names would clash across different tests, leading to unexpected results. This fixes it by using
an actual RNG in there, so the names don't ever clash.
2023-11-01 07:57:46 +01:00
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
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
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