From ac555fd57496d921480c273bd3078cb1c8ebe59c Mon Sep 17 00:00:00 2001 From: skilion Date: Sat, 11 Mar 2017 14:52:33 +0100 Subject: [PATCH] added missing scope --- src/onedrive.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onedrive.d b/src/onedrive.d index 5dadcab8..f42562ab 100644 --- a/src/onedrive.d +++ b/src/onedrive.d @@ -79,7 +79,7 @@ final class OneDriveApi { import std.stdio, std.regex; char[] response; - string url = authUrl ~ "?client_id=" ~ clientId ~ "&scope=files.readwrite.all%20offline_access&response_type=code&redirect_uri=" ~ redirectUrl; + string url = authUrl ~ "?client_id=" ~ clientId ~ "&scope=files.readwrite%20files.readwrite.all%20offline_access&response_type=code&redirect_uri=" ~ redirectUrl; log.log("Authorize this app visiting:\n"); write(url, "\n\n", "Enter the response uri: "); readln(response);