• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/liveid.php
  • Класс: WindowsLiveLogin
  • Вызов: WindowsLiveLogin::getRefreshConsentTokenUrl
function getRefreshConsentTokenUrl($offers, $refreshtoken, $ru=null)
{
	$_force_delauth_nonprovisioned = $this->_force_delauth_nonprovisioned;
	if (!$offers) {
		//throw new Exception('Error: getRefreshConsentTokenUrl: Invalid offers list.');
		$this->setError('Error: getRefreshConsentTokenUrl: Invalid offers list.');
		return false;
	}
	if (!$refreshtoken) {
		//throw new Exception('Error: getRefreshConsentTokenUrl: Invalid refresh token.');
		$this->setError('Error: getRefreshConsentTokenUrl: Invalid refresh token.');
		return false;
	}

	$url  = $this->getConsentBaseUrl();
	$url .= 'RefreshToken.aspx?ps=' . urlencode($offers);
	$url .= '&reft=' . $refreshtoken;
	$ru = ($ru ? $ru : $this->getReturnUrl());
	$url .= ($ru ? '&ru=' . urlencode($ru) : '');

	if (!$this->_force_delauth_nonprovisioned) {
		$url .= '&app=' . $this->getAppVerifier();
	}

	return $url;
}