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