From f1f5f403b7b9da2afe45b462046a3ba81c21216f Mon Sep 17 00:00:00 2001 From: InbalBD Date: Mon, 22 Jun 2020 20:12:52 +0300 Subject: [PATCH] PLAT-10970: change kaltura auth time to expiry time and not current time --- alpha/lib/model/FileSync.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/alpha/lib/model/FileSync.php b/alpha/lib/model/FileSync.php index 35646999c7c..7d5e1c0a50c 100644 --- a/alpha/lib/model/FileSync.php +++ b/alpha/lib/model/FileSync.php @@ -21,6 +21,8 @@ class FileSync extends BaseFileSync implements IBaseObject const FILE_SYNC_STATUS_DELETED = 3; const FILE_SYNC_STATUS_PURGED = 4; + const ONE_DAY = 86400; + private $statusMap = array ( self::FILE_SYNC_STATUS_ERROR => "Error", self::FILE_SYNC_STATUS_PENDING => "Pending", @@ -327,7 +329,7 @@ public function getExternalUrl($entryId, $format = PlaybackProtocol::HTTP) protected function addKalturaAuthParams($url) { $version = kNetworkUtils::DEFAULT_AUTH_HEADER_VERSION; - $timestamp = time(); + $timestamp = time() + self::ONE_DAY; $signature = kNetworkUtils::calculateSignature($version, $timestamp, $url); return '?kaltura_auth=' . $version . ',' . $timestamp . ',' . $signature;