We moved this page to our Documentation Portal. You can find the latest updates here. |
Token authentication allows users to fill in a random secret key and generate a token to authenticate the stream. The steps are below
- Fill in your secret key
- Select your protected path (eg, /video/test/, "/" is supported)
- Download .NET or Java token generator (Kindly request from our support team)
- Generate the token with the secret key, allow referrer, deny referrer, expiry date and allow IP. You may refer the readme file on the token generator for more information. Specifically, "Missing" can be applied on allow referrer if the HTTP referrer is missing from browser to video player. Under some scenarios, the referrer header that video player sent to edge server is the JS script domain instead of the website domain.
- Append the token with your stream URL, eg ?token= 110ea31ac69c09a2db0bdd74238843631cdab498ff7e6e75cbd99cc4d05426ab679a57015d4e48438c97b921652daec62de3829f8ff437e27449cfdfc2f1e5d9fc47f14e91a51ea7
- Embed with your website
Token generator script: Link