• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/document/documenthandler.php
  • Класс: BitrixDiskDocumentDocumentHandler
  • Вызов: DocumentHandler::getOAuthService
protected function getOAuthService(): CSocServAuth
{
	if ($this->oauthService === null)
	{
		$authServiceClass = $this->getOAuthServiceClass();

		$this->oauthService = new $authServiceClass($this->userId);
		foreach ($this->getScopes() as $scope)
		{
			$this->oauthService->getEntityOAuth()->addScope($scope);
		}
	}

	return $this->oauthService;
}