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:----V9xlHCn/EyAhij9DjPW6Z8KH3lBGWxma8fN6weVSdj620O0pYUvYzdqeAWVSwvGi6EIyUsnZm9G5xoBFUy4kuUb6dT9Ou5owhsLtMaddYUHXXLXhtbsy7HrmvFLUhEV1MHKixQRRhXTawgOFlUtH+x5PUvSegii5wpqZgwmN+BVTolsscaZxaVQ+6xiWwLww3yk5fRZcnblmS9zdNKtHYs+opbxsXbFJPxZlJWJQSW/5dCXQJiAaUDVbKrSRPpY2lUrQHCOkN6Ajxq3J9eMcWSdCtHJtn3lgd+WqsIQTXY2KEAKv55VV5Z/EiiYe4vouaDJx1I8Xil9E1MDKYcFzfkC5Dp1X2SStFo/PxHtK0JRKLGsyPfmC+GPihSXDsrhrkZSuqa6Ji5EfNVg0skN3W+9XLVRt4elAkWnyUAXYXJrGrRozPO18TARX7r+6DzzJzZniY+JLQaBV+UwW6nuRCe2jTrV8lKrT0sr0Sel0OL8fFBiTJbMiFIzK9tP5DqTshYDldonUpHO+mQXJ4ZvrLa+p7NUZKQartgDUeUsXQSmYIIXWGCmltDvkanidaZx0mU0p6VKP7Cacr63+c6lWDK1fggMG3jPjzNXLU13izq+Dp/KgO02CoEzHlw+NrCuNMXZA+ynnNGLvWbl3aUn/B2tfTcXvFULQZH5HD1pcu4c=----ATTACHMENT:----ODE5MjYwNjYxNjE2MDk0NiA1OTMyNDI0NTk3ODQ0MTM5IDMzMDU5NzAxNDU4MzEwODI=