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")]
|
||||
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,
|
||||
],
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user