mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2026-09-19 01:55:06 +08:00
fix(router): AdminWrite scope should be required for OneDrive OAuth callback
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user