Wowza Community

Token Authorization + RefererValidate


I currently use secure token v2 + RefererValidate to protect my stream that only work under my domain.

Now, I need CDN for one of my stream , I connect stream target to wowza cdn.

For secure token , I setup Token Authorization and Trusted Shared Secret.

I would like to know

1 : RefererValidate work with wowz CDN

2 : I use sample php code to generate “Generate query parameters”

, but nothing output. Is there a more simple hash generate code like secure token V2?

for secure token v2 , I used this code to generate hash

<?php $wowzastart = '0'; $wowzaend = strtotime(date('d-m-Y H:i')) + 1800; $secret = 'mysecret'; $wowzatoken = 'tokenname'; $hashstr = hash('sha512', 'stream-path?'.$secret.'&'.$wowzatoken.'endtime='.$wowzaend.'&'.$wowzatoken.'starttime='.$wowzastart.'', true); $usableHash= strtr(base64_encode($hashstr), '+/', '-_'); echo "http://wowza-ip/stream-path/playlist.m3u8?".$wowzatoken."endtime=".$wowzaend."&".$wowzatoken."starttime=".$wowzastart."&".$wowzatoken."hash=".$usableHash.""; ?>

hash will output and work well.

In wowza cloud token Query Parameters,

Download the source code
(AkamaiToken.php - An Akamai EdgeAuth Token 2.0 implementation for PHP * * author: James Mutton

add the require parameters , but nothing output.

Hello @Silencer,

As you discovered, the Wowza Streaming Engine secure token will not work with the Wowza CDN. The Akamai CDN token auth handles all security playback requests.
If you have additional questions, please submit a support request.