Skip to content

Commit

Permalink
Merge pull request #21 from rzhtwberlin/fix/urlsigning
Browse files Browse the repository at this point in the history
Request signed URLs when querying for publications
  • Loading branch information
justusdieckmann authored Mar 4, 2024
2 parents 1eda86e + 95434f8 commit 980511b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ private function add_video_published_data($ocinstanceid, $video) {

$api = new api($ocinstanceid);

$query = '/api/events/' . $video->identifier . '/publications/';
// Use sign=true parameter to get signed URLs when Opencasts URL signing is turned on. sign=true does not harm when turned off.
$query = '/api/events/' . $video->identifier . '/publications?sign=true';
$result = $api->oc_get($query);
$publications = json_decode($result);

Expand Down

0 comments on commit 980511b

Please sign in to comment.