Hi there … I’ve been trying to get playback token to work but haven’t been successful following steps in the documentation
I’m trying to get it to work manually first
My playback URL without token is as following
http://[server_IP]:1935/token/camtoken1.stream/playlist.m3u8
Based on documentation:
content path: token/definst/camtoken1.stream
Sharedsecret I’m using: 12345678
Prefix: wowzatoken
String to generate de HASH should be following
token/definst/camtoken1.stream?12345678&wowzatokendendtime=0&wowzatokenCustomParameter=abcdef
SHA256 of this string is ```
3f39d01d5178456f30bf235c6ed4e811b325b6b3224249c9aefc42a035157fc7
BASE64 of the hash is M2YzOWQwMWQ1MTc4NDU2ZjMwYmYyMzVjNmVkNGU4MTFiMzI1YjZiMzIyNDI0OWM5YWVmYzQyYTAzNTE1N2ZjNw==
Playback url
http://[server_IP]:1935/token/_definst_/camtoken1.stream/playlist.m3u8?wowzatokendendtime=0&wowzatokenCustomerParameter=abcdef&wowzatokenhash=M2YzOWQwMWQ1MTc4NDU2ZjMwYmYyMzVjNmVkNGU4MTFiMzI1YjZiMzIyNDI0OWM5YWVmYzQyYTAzNTE1N2ZjNw==
I get a forbidden access (403) and debug shows
[token/_definst_]SecureTokenDef:Hash M2YzOWQwMWQ1MTc4NDU2ZjMwYmYyMzVjNmVkNGU4MTFiMzI1YjZiMzIyNDI0OWM5YWVmYzQyYTAzNTE1N2ZjNw==, doesn't match hash calculated, hZ-eMMAXaer9tjWxYQj0T1WjIMSz_MecyQz6aEW8uu8=
Something is obviously wrong. So, what step is the one I'm doing wrong. Wowza's hash is way shorter than the one I calculated.
Thanks