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:----XH/fMEd0BNbZzNlbp5j0qoNdO4VbLz6uFLn/I7TkzGzz3pI0OjzH7jLK7FRCbkJpCYmZ+/kYtvykrmihwkO8Di2MtSlKxalNwC52RkIhbdiFPVFlulYNxNhaheV9IzdbJkNcOiVukmnV4ou9yA9+yMKoGPoDUrbOELVZ7y8qxJBwXlGFk3Q3o0G3H7ofUdl7JbhY9c1j426SalIuhnywy7h12mB2zum0TsnTIqRwCyFTorXIcvIUivWcrPUDvrfMyHRizwegX/guhtQmYnIBzNIlLwcRoiIDYntdQx8vw0QNolqAE+XKypGrWtLlumAexxkwDZuu+eFT4ylE0wDq8bRd4OEOLI+dqrCCFaDvZXqfVawH7E+Oe43U75tjpy0JWGUzfGg0QtnG6Ls9K9TrHTNkSJqplDMYaLcVX+HnYZhSUVRsx3xTBiFeN3RCS7ovzkymQFDYEak9tfwEGK2Kv4krJTqtupbZWsltgMJbQh/drd+URUQdzWjV5U9V7eSsVlcoAqLmsLkprtyLbT4qluXkVG66vBjuudf+uEt2iS2UZ3dtjLJ/428RSTCwwqZPbTpP1TVvLVQZuPXsFWkhIwMiN0UgrSz9jpY9rbnKMz7e7M2i0grJHDezIj1juxTYAqZYFm8jt3yMCtDkyo3i5wjBfB9+ju7CI67P0Ej0I6w=----ATTACHMENT:----ODkwNDAwNDM5NDc2MzQxNiA4NjA5ODEzNzg1NjA3OTIyIDY3NDU1MjM0NTUxNjIzNTk=