• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/sessionauth/auth.php
  • Класс: BitrixRestSessionAuthAuth
  • Вызов: Auth::checkHttpAuth
static function checkHttpAuth()
{
	global $USER, $APPLICATION;

	if(!$USER->IsAuthorized())
	{
		$httpAuth = $USER->LoginByHttpAuth();
		if($httpAuth !== null)
		{
			$APPLICATION->SetAuthResult($httpAuth);
		}
	}
}