diff --git a/CHANGELOG.md b/CHANGELOG.md index cd72d8ff..35ec1476 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Breaking changes: * Remove `bind_email` request field (removed in r0.6.0) * Remove `inhibit_login` request field, make `access_token` and `device_id` response fields optional (added in r0.4.0) * Remove deprecated `home_server` response field (removed in r0.4.0) +* Add `auth_parameters` to `r0::account::AuthenticationData` # 0.7.2 diff --git a/src/r0/account.rs b/src/r0/account.rs index 4064aa37..8b870bae 100644 --- a/src/r0/account.rs +++ b/src/r0/account.rs @@ -17,6 +17,8 @@ pub mod unbind_3pid; pub mod whoami; +use std::collections::BTreeMap; + use serde::{Deserialize, Serialize}; /// Additional authentication information for the user-interactive authentication API. @@ -27,6 +29,9 @@ pub struct AuthenticationData { pub kind: String, /// The value of the session key given by the homeserver. pub session: Option, + /// Parameters submitted for a particular authentication stage. + #[serde(flatten)] + pub auth_parameters: BTreeMap, } /// Additional authentication information for requestToken endpoints.