You've already forked authentication-service
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:
@ -39,6 +39,9 @@ enum LoginType {
|
|||||||
#[serde(rename = "m.login.password")]
|
#[serde(rename = "m.login.password")]
|
||||||
Password,
|
Password,
|
||||||
|
|
||||||
|
#[serde(rename = "m.login.token")]
|
||||||
|
Token,
|
||||||
|
|
||||||
#[serde(rename = "m.login.sso")]
|
#[serde(rename = "m.login.sso")]
|
||||||
Sso {
|
Sso {
|
||||||
#[serde(skip_serializing_if = "Vec::is_empty")]
|
#[serde(skip_serializing_if = "Vec::is_empty")]
|
||||||
@ -62,11 +65,9 @@ pub(crate) async fn get() -> impl IntoResponse {
|
|||||||
flows: vec![
|
flows: vec![
|
||||||
LoginType::Password,
|
LoginType::Password,
|
||||||
LoginType::Sso {
|
LoginType::Sso {
|
||||||
identity_providers: vec![SsoIdentityProvider {
|
identity_providers: vec![],
|
||||||
id: "legacy",
|
|
||||||
name: "SSO",
|
|
||||||
}],
|
|
||||||
},
|
},
|
||||||
|
LoginType::Token,
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user