mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 16:02:54 +03:00
Added scope to the Google Calendar connection flow to enforce the user consent screen.
This commit is contained in:
parent
f6ee08608a
commit
e8655066fd
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ class Google_Sync {
|
||||||
$this->client->setClientSecret($this->CI->config->item('google_client_secret'));
|
$this->client->setClientSecret($this->CI->config->item('google_client_secret'));
|
||||||
$this->client->setDeveloperKey($this->CI->config->item('google_api_key'));
|
$this->client->setDeveloperKey($this->CI->config->item('google_api_key'));
|
||||||
$this->client->setRedirectUri(site_url('google/oauth_callback'));
|
$this->client->setRedirectUri(site_url('google/oauth_callback'));
|
||||||
|
$this->client->setPrompt('consent');
|
||||||
$this->client->setAccessType('offline');
|
$this->client->setAccessType('offline');
|
||||||
$this->client->addScope([
|
$this->client->addScope([
|
||||||
Google_Service_Calendar::CALENDAR,
|
Google_Service_Calendar::CALENDAR,
|
||||||
|
|
Loading…
Reference in a new issue