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

Implement the device consent logic

This commit is contained in:
Quentin Gliech
2023-12-08 14:23:34 +01:00
parent 50654d2e40
commit 67ab42155c
12 changed files with 482 additions and 27 deletions

View File

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