onedrive: add Sites.Read.All permission - Fixes #1770

This commit is contained in:
Benjamin Richter 2020-01-20 13:30:19 +01:00 committed by Nick Craig-Wood
parent ccaca04a5d
commit 77fa8194f2

View File

@ -59,7 +59,7 @@ var (
AuthURL: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize", AuthURL: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
TokenURL: "https://login.microsoftonline.com/common/oauth2/v2.0/token", TokenURL: "https://login.microsoftonline.com/common/oauth2/v2.0/token",
}, },
Scopes: []string{"Files.Read", "Files.ReadWrite", "Files.Read.All", "Files.ReadWrite.All", "offline_access"}, Scopes: []string{"Files.Read", "Files.ReadWrite", "Files.Read.All", "Files.ReadWrite.All", "offline_access", "Sites.Read.All"},
ClientID: rcloneClientID, ClientID: rcloneClientID,
ClientSecret: obscure.MustReveal(rcloneEncryptedClientSecret), ClientSecret: obscure.MustReveal(rcloneEncryptedClientSecret),
RedirectURL: oauthutil.RedirectLocalhostURL, RedirectURL: oauthutil.RedirectLocalhostURL,