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

pull/3490/head
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