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:----RlXamtMTgj6/W8etOqfyr9HSgKFziFzExeNH9Gyxsgz+1YclfRQwMaAAJdPyRzxnOsaYT2lDUa5Yk8TB+GL+7//9edU4kyw/zEcg4q7QLM0Fw5aFdMxd9xj+Foh60goXHEsHi44ZylkVpsNu5XXtkFbrUPJFMJRJOgWyKbWpEE228/IFbagfQruObOwcyFWtH9L6zLoq/D2StuH9PVaFic7iDSn4KTyxgqHtUqRhIdGp0h55Gy4GdI4kgFeVYubXmakMleVQBxumVSWYsECYaYemqZsLy/7HXVdh9d4BShfRLSk9nzOUIY2OZYfhgfD5u563D2FYqNs0AkkHDcgG4KuGv1mJxE0VQV3nPsWc8iA0OXbPET51ua0QAlUxLnUyuBFekRrAzWo0pfviKspRSulPSMK+tClxDm43CmcQThf/9LVhYlpbMTAzqBDwmO8n2nE1elb9zjMiT3DnzkYnv58xMnRVik9jdE00yAk8awodrXKv6FhW/tSqeqRThFBsfkCsKIHnyS6HkANAXeejNEvCyMve6t8eFYe+AqR+g9VNe0dWE2FJxhgY1XQH5kb79iKXWXHC6E3wgiJq8D3hF9vImynXo6nwkI6IkgGeiyjWBS4uRyH3iDytnTqGkYguPnfZ144x4osgdbc0SfXv6jpyxmzONhukOdi8ft29xc4=----ATTACHMENT:----MTQ3NDEzNjY5OTIzMzM3NSAxMzAxNzk4NTExNDM5MTUxIDM2MTU5OTgyODg4NTgxODg=