Skip to content

Commit 26dcba6

Browse files
committed
Remove the complete handler, make it go through the consent page
1 parent e22016f commit 26dcba6

File tree

7 files changed

+142
-384
lines changed

7 files changed

+142
-384
lines changed

crates/handlers/src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -405,13 +405,10 @@ where
405405
mas_router::OAuth2AuthorizationEndpoint::route(),
406406
get(self::oauth2::authorization::get),
407407
)
408-
.route(
409-
mas_router::ContinueAuthorizationGrant::route(),
410-
get(self::oauth2::authorization::complete::get),
411-
)
412408
.route(
413409
mas_router::Consent::route(),
414-
get(self::oauth2::consent::get).post(self::oauth2::consent::post),
410+
get(self::oauth2::authorization::consent::get)
411+
.post(self::oauth2::authorization::consent::post),
415412
)
416413
.route(
417414
mas_router::CompatLoginSsoComplete::route(),

crates/handlers/src/oauth2/authorization/callback.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl CallbackDestination {
101101
})
102102
}
103103

104-
pub async fn go<T: Serialize + Send + Sync>(
104+
pub fn go<T: Serialize + Send + Sync>(
105105
self,
106106
templates: &Templates,
107107
locale: &DataLocale,

crates/handlers/src/oauth2/authorization/complete.rs

Lines changed: 0 additions & 271 deletions
This file was deleted.

0 commit comments

Comments
 (0)