fix(router): login consent should be for authenticated audience only

This commit is contained in:
Aaron Liu
2026-02-05 19:16:13 +08:00
parent b913b4683f
commit 9dcc82ead8
2 changed files with 2 additions and 2 deletions

2
assets

Submodule assets updated: b900a868aa...21a9819433

View File

@@ -326,7 +326,7 @@ func initMasterRouter(dep dependency.Dep) *gin.Engine {
controllers.GetAppRegistration,
)
oauthRouter.POST("consent",
middleware.Logging(),
middleware.LoginRequired(),
controllers.FromJSON[oauth.GrantService](oauth.GrantParamCtx{}),
controllers.GrantAppConsent,
)