fix: need Sites scope
parent
1295ad92ef
commit
7ea726c9c7
|
@ -15,7 +15,7 @@ class Sharepoint extends Onedrive {
|
||||||
}
|
}
|
||||||
$this->oauth_url = 'https://login.microsoftonline.com/common/oauth2/v2.0/';
|
$this->oauth_url = 'https://login.microsoftonline.com/common/oauth2/v2.0/';
|
||||||
$this->api_url = 'https://graph.microsoft.com/v1.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));
|
$res = $this->get_access_token(getConfig('refresh_token', $tag));
|
||||||
|
|
||||||
$this->client_secret = urlencode($this->client_secret);
|
$this->client_secret = urlencode($this->client_secret);
|
||||||
|
|
Loading…
Reference in New Issue