diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-11-09 14:02:45 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-11-09 14:02:45 +0100 |
commit | ded50e8dbe0f519ba9b16016c3be9f15422f33b1 (patch) | |
tree | bf35153c3127809bc3ab880c3ce456c564358f74 | |
parent | 159e6b6444de82e04c72cfe6d61d3c646b15e3b5 (diff) | |
parent | 3a3ccd47b9e98bf831d7001452a9c5562a58ccae (diff) | |
download | nextcloud-server-ded50e8dbe0f519ba9b16016c3be9f15422f33b1.tar.gz nextcloud-server-ded50e8dbe0f519ba9b16016c3be9f15422f33b1.zip |
Merge pull request #20396 from owncloud/stable8-extstorage-gdrive-forceapproval
[stable8] Force approval in GDrive oauth to get refresh_token
-rw-r--r-- | apps/files_external/ajax/google.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_external/ajax/google.php b/apps/files_external/ajax/google.php index b80f24bbd2c..000697fb33b 100644 --- a/apps/files_external/ajax/google.php +++ b/apps/files_external/ajax/google.php @@ -14,6 +14,7 @@ if (isset($_POST['client_id']) && isset($_POST['client_secret']) && isset($_POST $client->setClientSecret($_POST['client_secret']); $client->setRedirectUri($_POST['redirect']); $client->setScopes(array('https://www.googleapis.com/auth/drive')); + $client->setApprovalPrompt('force'); $client->setAccessType('offline'); if (isset($_POST['step'])) { $step = $_POST['step']; |