From 94f0beec518bb30ec6f2c09b327c03583197ff48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Fri, 21 Mar 2025 16:16:07 +0100 Subject: [PATCH] chore: Add changelog for login with registration methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- crates/matrix-sdk/CHANGELOG.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/crates/matrix-sdk/CHANGELOG.md b/crates/matrix-sdk/CHANGELOG.md index 0d7f54ef1..f82f32390 100644 --- a/crates/matrix-sdk/CHANGELOG.md +++ b/crates/matrix-sdk/CHANGELOG.md @@ -200,6 +200,22 @@ simpler methods: - `OAuthRegistrationStore::new()` no longer takes a `static_registrations` parameter. It should be provided if needed with `OAuthRegistrationStore::with_static_registrations()`. +- [**breaking**] Allow to use any registration method with `OAuth::login()` and + `OAuth::login_with_qr_code()`. + ([#4827](https://github.com/matrix-org/matrix-rust-sdk/pull/4827)) + - `OAuth::login` takes an `ClientRegistrationMethod` to be able to register + and login with a single function call. + - `OAuth::url_for_oidc()` was removed, it can be replaced by a call to + `OAuth::login()`. + - `OAuth::login_with_qr_code()` takes a `ClientRegistrationMethod` instead of + the client metadata. + - `OAuth::finish_login` takes a `UrlOrQuery` instead of an + `AuthorizationCode`. The deserialization of the query string will occur + inside the method and eventual errors will be handled. + - `OAuth::login_with_oidc_callback()` was removed, it can be replaced by a + call to `OAuth::finish_login()`. + - `AuthorizationResponse`, `AuthorizationCode` and `AuthorizationError` are + now private. ## [0.10.0] - 2025-02-04