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

master
Aaron Liu 2 days ago
parent b913b4683f
commit 9dcc82ead8

@ -1 +1 @@
Subproject commit b900a868aa9ab09df7876feb6ac2de40b3be23ae
Subproject commit 21a98194339c89e375ac7e34fdb93d4aa0d213ef

@ -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,
)

Loading…
Cancel
Save