• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/document/onedrivehandler.php
  • Класс: BitrixDiskDocumentOneDriveHandler
  • Вызов: OneDriveHandler::getUrlForAuthorizeInTokenService
public function getUrlForAuthorizeInTokenService($mode = 'modal')
{
	if(!Loader::includeModule('socialservices'))
	{
		$this->errorCollection->add(array(new Error(Loc::getMessage('DISK_ONEDRIVE_HANDLER_ERROR_NOT_INSTALLED_SOCSERV'), self::ERROR_NOT_INSTALLED_SOCSERV)));
		return false;
	}

	$oauthService = $this->getOAuthService();
	if($mode === 'opener')
	{
		return $oauthService->getUrl(
			'opener', $this->getScopes(),
			array('BACKURL' => '#external-auth-ok')
		);
	}

	return $oauthService->getUrl('modal', $this->getScopes());
}