diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-09 11:11:13 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-09 11:11:13 +0100 |
commit | 77335ca403b096be587073a89e2b2ee6c8042a2d (patch) | |
tree | 1c98ed3c1c98787b34e156690688b2120f171b54 /apps | |
parent | a5dd2df384e76c4f6b82674c9c8ef17448a58661 (diff) | |
parent | 26b01c7fffa619fa508057656bd90a30f39c1bcc (diff) | |
download | nextcloud-server-77335ca403b096be587073a89e2b2ee6c8042a2d.tar.gz nextcloud-server-77335ca403b096be587073a89e2b2ee6c8042a2d.zip |
Merge pull request #20360 from owncloud/extstorage-gdrive-forceapproval
Force approval in GDrive oauth to get refresh_token
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/ajax/oauth2.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_external/ajax/oauth2.php b/apps/files_external/ajax/oauth2.php index e3e32c4b912..fbe60e16e26 100644 --- a/apps/files_external/ajax/oauth2.php +++ b/apps/files_external/ajax/oauth2.php @@ -41,6 +41,7 @@ if (isset($_POST['client_id']) && isset($_POST['client_secret']) && isset($_POST $client->setClientSecret((string)$_POST['client_secret']); $client->setRedirectUri((string)$_POST['redirect']); $client->setScopes(array('https://www.googleapis.com/auth/drive')); + $client->setApprovalPrompt('force'); $client->setAccessType('offline'); if (isset($_POST['step'])) { $step = $_POST['step']; |