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

Axum migration: /oauth2/authorize

This commit is contained in:
Quentin Gliech
2022-04-06 15:29:35 +02:00
parent 35310849c7
commit 51160faf48
4 changed files with 309 additions and 336 deletions

View File

@@ -95,6 +95,11 @@ where
post(self::oauth2::introspection::post),
)
.route("/oauth2/token", post(self::oauth2::token::post))
.route("/oauth2/authorize", get(self::oauth2::authorization::get))
.route(
"/oauth2/authorize/step",
get(self::oauth2::authorization::step_get),
)
.fallback(mas_static_files::Assets)
.layer(Extension(pool.clone()))
.layer(Extension(templates.clone()))