From d591812c7f6f607b39f1a18203e07a923cd57362 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 28 Mar 2021 16:42:23 +0800 Subject: [PATCH] fix: need Sites scope --- disk/SharepointCN.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk/SharepointCN.php b/disk/SharepointCN.php index 3aadd56..d64fdaa 100644 --- a/disk/SharepointCN.php +++ b/disk/SharepointCN.php @@ -15,7 +15,7 @@ class SharepointCN extends Onedrive { } $this->oauth_url = 'https://login.partner.microsoftonline.cn/common/oauth2/v2.0/'; $this->api_url = 'https://microsoftgraph.chinacloudapi.cn/v1.0'; - $this->scope = 'https://microsoftgraph.chinacloudapi.cn/Files.ReadWrite.All offline_access'; + $this->scope = 'https://microsoftgraph.chinacloudapi.cn/Files.ReadWrite.All https://microsoftgraph.chinacloudapi.cn/Sites.ReadWrite.All offline_access'; $res = $this->get_access_token(getConfig('refresh_token', $tag)); $this->client_secret = urlencode($this->client_secret);