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

dependabot/go_modules/golang.org/x/net-0.55.0
Aaron Liu 1 month ago
parent 0b00dd308f
commit 9e9fb43e72

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

Loading…
Cancel
Save