fix: need Sites scope

This commit is contained in:
qkqpttgf
2021-03-28 16:42:23 +08:00
committed by GitHub
parent 599b937f99
commit d591812c7f
+1 -1
View File
@@ -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);