You've already forked authentication-service
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user