- Модуль: mail
- Путь к файлу: ~/bitrix/modules/mail/lib/helper/oauth.php
- Класс: BitrixMailHelperOAuth
- Вызов: OAuth::getUrl
public function getUrl()
{
global $APPLICATION;
if (isModuleInstalled('bitrix24') && defined('BX24_HOST_NAME'))
{
$state = sprintf(
'%s?%s',
$this->getRedirect(),
http_build_query(array(
'check_key' => CSocServAuthManager::getUniqueKey(),
'dummy' => 'https://dummy.bitrix24.com/',
'state' => rawurlencode(http_build_query(array(
'service' => $this->service,
'uid' => $this->storedUid,
))),
))
);
}
else
{
$state = http_build_query(array(
'check_key' => CSocServAuthManager::getUniqueKey(),
'service' => $this->service,
'uid' => $this->storedUid,
));
}
return $this->oauthEntity->getAuthUrl($this->getRedirect(false), $state);
}