Skip to content

Commit

Permalink
fix: need Sites scope
Browse files Browse the repository at this point in the history
  • Loading branch information
qkqpttgf committed Mar 28, 2021
1 parent 599b937 commit d591812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disk/SharepointCN.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function __construct($tag) {
}
$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);
Expand Down

0 comments on commit d591812

Please sign in to comment.