fix(router): AdminWrite scope should be required for OneDrive OAuth callback

pull/3490/head
Aaron Liu 3 months ago
parent 0b00dd308f
commit 9e9fb43e72

@ -1007,6 +1007,7 @@ func initMasterRouter(dep dependency.Dep) *gin.Engine {
{ {
// 获取 OneDrive OAuth URL // 获取 OneDrive OAuth URL
oauth.POST("signin", oauth.POST("signin",
middleware.RequiredScopes(types.ScopeAdminWrite),
controllers.FromJSON[adminsvc.GetOauthRedirectService](adminsvc.GetOauthRedirectParamCtx{}), controllers.FromJSON[adminsvc.GetOauthRedirectService](adminsvc.GetOauthRedirectParamCtx{}),
controllers.AdminOdOAuthURL, controllers.AdminOdOAuthURL,
) )

Loading…
Cancel
Save