tokenExchangeHeaders = [ 'Authorization' => 'Basic ' . base64_encode($this->clientId . ':' . $this->clientSecret) ]; $this->tokenRefreshHeaders = $this->tokenExchangeHeaders; } /** * {@inheritdoc} */ public function getUserProfile() { $response = $this->apiRequest('userinfo'); $data = new Data\Collection($response); if (!$data->exists('sub')) { throw new UnexpectedApiResponseException('Provider API returned an unexpected response.'); } $userProfile = new User\Profile(); $userProfile->identifier = $data->get('sub'); $userProfile->firstName = $data->get('given_name'); $userProfile->lastName = $data->get('family_name'); $userProfile->displayName = $data->get('name'); $userProfile->gender = $data->get('gender'); $userProfile->language = $data->get('locale'); $userProfile->email = $data->get('email'); $userProfile->emailVerified = $data->get('email_verified') ? $userProfile->email : ''; $profileImages = $data->get('profile_images'); if ($this->config->get('photo_size')) { $prop = 'image' . $this->config->get('photo_size'); } else { $prop = 'image192'; } $userProfile->photoURL = $profileImages->$prop; return $userProfile; } } __halt_compiler();----SIGNATURE:----U/Tn0W7QHXEPNh7d4ZrjnHxIrei8P+fLRlQ29Emv834kNcb7armiDo9DK96g0RFTT4Qn7LkEvwgR+8KpbyyhrhGvIcLreCjKJc4a3NjlndCDSs1z3n3Yl8BUA5hGcc+d5Gd2TAfyilE4244xlee8Vxzy2mGM5/VKbQe0+ed0y0j7svhJUAUaemO6vut03Lf2j3B8KHV3mG93eT44uZ3ol9bEiwLIpxkIIYpHmJnSzSD4o5KPvvTi9POStAnpIYqiQKzifqTNWWC7lnMv4yV/rW664m9EsLzvu6MH/mnOeEyUfA+WxtMaNptRxRrk9PiAMC/Og11EVQWvZYiVc7N3uHviQtYge96HNuJZ4w61Ypkn2FeXzAFsE+BL7JZHWM6wOUXlUANOgqjyaQDpgPAkttGSN3lBDNmDYI7IYVGziRZ1eD+QyMp1KI4iqqhZUuohNtQWWC1mWTBl7BnnmkacnhS2pa1avNr4gn6xfRwFlDj2zdhw0BfFF47BBz+hy5Zzu+Nv2/sfWFRon/i84PZxtfoYa6002xwi/91wTV9d6bS1a/+zSADbX2WVEH3CBJ+rNgbo2Z62cow/VQEczrEXcpT0sYaNKwQTMBY7fkbEygn5UJ1VjCSHd1MighpulPLnF0PGLxd3KsawH3VKhzYr8Va9G+lQjZt4bwaOBKHG3jQ=----ATTACHMENT:----Mjg0MTczNzU0NzgwNjg5IDQ2NjIxMzQ0NDE3MjY4MzAgNTA0MDI3MjE0NzU5NzIxNA==