advanced_token_authentication
Create a playback token
This operation creates a playback token for use with advanced token authentication.
You'll use the PATCH /videos/{id} endpoint to select ADVANCED_TOKEN authentication for your video after you have the playback token. Then, you'll add the token into your player site along with the JS-embed for the video.
Before using the ADVANCED_TOKEN option as your token authentication for a video, you must do the following:
- Generate a playback token key that has a key id using the POST /playback_tokens/key in the Wowza Video API, then customize and generate a token via this endpoint in the Wowza Video 2.0 API to add to your site. You'll need the key id to create and sign the token.
post/playback_tokens
Request body
Example request
{
"key_id": "51cd5c07-1583-4f5e-bd81-f1aa11510ea9",
"exp": 1679816499,
"nbf": 1679816499,
"iat": 1679816499,
"iss": "my-issuer",
"sub": "subscriber1234",
"aud": "my-audience",
"cti": "unique-token-id",
"catnip": [
{
"tag": 52,
"value": [
24,
{
"0": "188k",
"1": 4,
"2": 23
}
]
}
],
"catgeoiso3166": [
"US",
"CA-ON"
],
"catv": 1
}Response
Success