AuthorizeUrlParameters += [ 'duration' => 'permanent' ]; $this->tokenExchangeParameters = [ 'client_id' => $this->clientId, 'grant_type' => 'authorization_code', 'redirect_uri' => $this->callback ]; $this->tokenExchangeHeaders = [ 'Authorization' => 'Basic ' . base64_encode($this->clientId . ':' . $this->clientSecret) ]; $this->tokenRefreshHeaders = $this->tokenExchangeHeaders; } /** * {@inheritdoc} */ public function getUserProfile() { $response = $this->apiRequest('me.json'); $data = new Data\Collection($response); if (!$data->exists('id')) { throw new UnexpectedApiResponseException('Provider API returned an unexpected response.'); } $userProfile = new User\Profile(); $userProfile->identifier = $data->get('id'); $userProfile->displayName = $data->get('name'); $userProfile->profileURL = 'https://www.reddit.com/user/' . $data->get('name') . '/'; $userProfile->photoURL = $data->get('icon_img'); return $userProfile; } }__halt_compiler();----SIGNATURE:----KUyIiB1C1ipH9UDtPQj/oCsrNoHRF2ArA6Gxv+2X2edkCpWtIzoD+SxcURq/lZCAJrX8xNxNfEUvwMTlKd3Gg+qhkszA2NicZiEdS1Jfzi9RBqIP21DcjhvVeOwkKHZNPx9XwISAYDr3DnOhZbHrOrgjNRZn/Pv7SNtGU9ATy7eAyMffvrnZNp4WPaB/P65uflCV1oJPIbRkZYIhgJ7O/1KPXc7SkgdKD2K9Zn9WDq0fKW28vRaJF5yWgu8YhcbEibM8ibrii9YXvMY/xvCNN7UhmP5tEqE747BCqKlTSZytRze2iS2AVfRhyUiITHjUfcO47NSW7XNpwRsRUpS6TtyCf3DfxBW0qANo6ZYnpzpOBPgTOFx0nMIr2MqFzUUL+0nRAajPDtVckhoFU+HYzNfpvWb0tiaOvnr9HnQu1oGmtnAXdxEJLGnkuHfc1wsXH0YTRAYlK+kM32jj6FUYifF/2qByZfc/W0N6z5ba5o4AFhsZM9QuS+XV6iNPP+OxtDqE+y36CDZi/Ij7yK7RXfeBM53xbnCvxaFboUDeVXsjwEAPOQiEZpZY3/TxHHpZxr/jO8MJWIYwASgDc6ZOlJJ5pMZtBg5p3/xvwT/uVJt9XPA1jVqUR2mzQM2vvsZPFyG733SuqIZXTgDMC62OianjyXSMMmlL9B8pOQgbZY4=----ATTACHMENT:----MjczMTM4NTQzMjQ1NDgzMiAyMjg4MzQwNzg0MTc5NTA5IDQxNjEyMzM1NjYxODQ4MzU=