• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
  • DEVELOPER
  • SOLUTIONS
  • PRICING
  • RESOURCES
  • SUPPORT
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster Pro
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Articles
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza Streaming Cloud /
avatar image
Question by Silencer · Aug 12 at 03:52 PM · cdn

Token Authorization + RefererValidate

Hi,

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?



Comment

People who like this

0 Show 2
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Silencer · Aug 12 at 01:23 PM 0
Share

In wowza cloud token Query Parameters,

Download the source code
(AkamaiToken.php - An Akamai EdgeAuth Token 2.0 implementation for PHP * * author: James Mutton <jmutton@akamai.com>)

add the require parameters , but nothing output.

avatar image Silencer · Aug 12 at 03:52 PM 0
Share

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.

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Mac Hill · Aug 14 at 02:04 PM

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.

Regards,
Mac

Comment

People who like this

0 Show 0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

HLS playback stops in AVPlayerLayer 1 Answer

URGENT: Streaming Cloud Issues in Taiwan 2 Answers

Hot Topics
  • Streaming Protocols
  • Wowza SDKs
  • AWS Hosting
  • Deployment Options
  • Load Balancing
  • Content Security
Product Sign-in
  • Wowza Streaming Cloud
  • Wowza Player
Under the Hood
  • Developer Tools
  • Wowza System Status
  • Test Players
  • Developer IDE
Partners
  • Partners Overview
  • Find a Reseller
  • Channel Partner Program
  • OEM Program
  • Wowza Reseller Portal
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Contact Us
Stay Connected
Sign Up for Our Blog
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2019 Wowza Media Systems, LLC. All rights reserved.   Terms | Privacy | Trademarks | Legal


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Forums
  • Wowza ClearCaster Pro
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Articles
  • Users
  • Badges