Add auth_parameters field to AuthenticationData.

This commit is contained in:
Isaiah Inuwa 2020-04-06 14:39:07 -05:00 committed by Jonas Platte
parent abcc8ec1d2
commit ff8427cb93
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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<String>,
/// Parameters submitted for a particular authentication stage.
#[serde(flatten)]
pub auth_parameters: BTreeMap<String, serde_json::Value>,
}
/// Additional authentication information for requestToken endpoints.