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

Setup the device link form page

This commit is contained in:
Quentin Gliech
2023-12-06 18:57:38 +01:00
parent ae05cbc1f1
commit 4301fd9378
8 changed files with 257 additions and 10 deletions

View File

@@ -404,6 +404,10 @@ where
mas_router::UpstreamOAuth2Link::route(),
get(self::upstream_oauth2::link::get).post(self::upstream_oauth2::link::post),
)
.route(
mas_router::DeviceCodeLink::route(),
get(self::oauth2::device::link::get).post(self::oauth2::device::link::post),
)
.layer(AndThenLayer::new(
move |response: axum::response::Response| async move {
if response.status().is_server_error() {