1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Add password change discovery

See https://web.dev/change-password-url/
This commit is contained in:
Quentin Gliech
2022-05-12 15:06:37 +02:00
parent a6f931840c
commit bf1d96fc23
5 changed files with 21 additions and 4 deletions

View File

@@ -60,6 +60,10 @@ where
{
// All those routes are API-like, with a common CORS layer
let api_router = Router::new()
.route(
mas_router::ChangePasswordDiscovery::route(),
get(|| async { mas_router::AccountPassword.go() }),
)
.route(
mas_router::OidcConfiguration::route(),
get(self::oauth2::discovery::get),