Add auth_parameters field to AuthenticationData.
This commit is contained in:
parent
abcc8ec1d2
commit
ff8427cb93
@ -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
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user