1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-09 10:01:45 +03:00

Advertise m.login.token as compat login method

This commit is contained in:
Quentin Gliech
2022-05-23 10:17:36 +02:00
parent 99ac59bc5d
commit f05bd80e14

View File

@ -39,6 +39,9 @@ enum LoginType {
#[serde(rename = "m.login.password")]
Password,
#[serde(rename = "m.login.token")]
Token,
#[serde(rename = "m.login.sso")]
Sso {
#[serde(skip_serializing_if = "Vec::is_empty")]
@ -62,11 +65,9 @@ pub(crate) async fn get() -> impl IntoResponse {
flows: vec![
LoginType::Password,
LoginType::Sso {
identity_providers: vec![SsoIdentityProvider {
id: "legacy",
name: "SSO",
}],
identity_providers: vec![],
},
LoginType::Token,
],
};