Open ninsky opened 6 months ago
I was able to set the parameter on createAuthUrl().
@ninsky please provide code snippet
Here we go:
return $this->googleClient->createAuthUrl([Google_Service_Oauth2::USERINFO_PROFILE, Google_Service_Oauth2::USERINFO_EMAIL], ['enable_granular_consent' => 'true']);
I've created PR
I've got an email from Google telling me that users of my Google Client (created before 2019) will get displayed a granular consent screen from June 2024. Therefore I need to set the "enable_granular_consent" parameter on the Google Client. This parameter is set by default for newer Google Client IDs according to google developers doc.
Now I've checked the most current version of the Client.php and it seems that there is no such function to set this parameter. Any idea how I could fix this or whether this function will be added to the Client.php soonish?
Thanks in advance Nino