You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
@ -23,6 +23,7 @@ pub enum PostAuthAction {
|
||||
#[serde(deserialize_with = "serde_with::rust::display_fromstr::deserialize")]
|
||||
data: i64,
|
||||
},
|
||||
ChangePassword,
|
||||
}
|
||||
|
||||
impl PostAuthAction {
|
||||
@ -35,6 +36,7 @@ impl PostAuthAction {
|
||||
pub fn go_next(&self) -> axum::response::Redirect {
|
||||
match self {
|
||||
Self::ContinueAuthorizationGrant { data } => ContinueAuthorizationGrant(*data).go(),
|
||||
Self::ChangePassword => AccountPassword.go(),
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -55,6 +57,13 @@ impl SimpleRoute for Webfinger {
|
||||
const PATH: &'static str = "/.well-known/webfinger";
|
||||
}
|
||||
|
||||
/// `GET /.well-known/change-password`
|
||||
pub struct ChangePasswordDiscovery;
|
||||
|
||||
impl SimpleRoute for ChangePasswordDiscovery {
|
||||
const PATH: &'static str = "/.well-known/change-password";
|
||||
}
|
||||
|
||||
/// `GET /oauth2/keys.json`
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct OAuth2Keys;
|
||||
|
Reference in New Issue
Block a user