3namespace Bitrix\Mail\Helper\OAuth;
13 $this->oauthEntity =
new MailruInterface(
14 \CSocServMailRu2::getOption(
'mailru2_client_id'),
15 \CSocServMailRu2::getOption(
'mailru2_client_secret')
18 $this->oauthEntity->addScope(
array(
34 'email' => $userData[
'email'],
35 'first_name' => $userData[
'first_name'],
36 'last_name' => $userData[
'last_name'],
37 'full_name' => $userData[
'name'],
38 'image' => $userData[
'image'],
39 'error' => $userData[
'error_description'],
50 return \CSocServMailRu2::CONTROLLER_URL;
55if (
Main\Loader::includeModule(
'socialservices'))
57 class_exists(
'CSocServMailRu2');
62 public function getStorageTokens()
67 public function getTokenData()
70 'access_token' => $this->access_token,
71 'refresh_token' => $this->refresh_token,
72 'expires_in' => $this->accessTokenExpires,
76 public function getCurrentUser()
78 $result = parent::getCurrentUser();
if(!Loader::includeModule('messageservice')) $provider
mapUserData(array $userData)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)