From e8655066fde8a23404c285b8559256a50ddc731c Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 30 Nov 2020 21:34:12 +0200 Subject: [PATCH] Added scope to the Google Calendar connection flow to enforce the user consent screen. --- application/libraries/Google_sync.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/libraries/Google_sync.php b/application/libraries/Google_sync.php index f32e25fc..619b9be7 100644 --- a/application/libraries/Google_sync.php +++ b/application/libraries/Google_sync.php @@ -62,6 +62,7 @@ class Google_Sync { $this->client->setClientSecret($this->CI->config->item('google_client_secret')); $this->client->setDeveloperKey($this->CI->config->item('google_api_key')); $this->client->setRedirectUri(site_url('google/oauth_callback')); + $this->client->setPrompt('consent'); $this->client->setAccessType('offline'); $this->client->addScope([ Google_Service_Calendar::CALENDAR,