/** * @param array $scopes * @param string $state * @return array */ protected function createAuthorizationParameters(array $scopes, $state) { $scopes[] = 'r_basicprofile'; $scopes[] = 'r_emailaddress'; return parent::createAuthorizationParameters($scopes, $state); }
/** * @param array $scopes * @param string $state * @return array */ protected function createAuthorizationParameters(array $scopes, $state) { $scopes[] = 'https://www.googleapis.com/auth/userinfo.email'; $scopes[] = 'https://www.googleapis.com/auth/userinfo.profile'; return parent::createAuthorizationParameters($scopes, $state); }