There are several things you can do with the Access Revocation API, key among them is creating a revocation list and adding tokens to it that you want blocked. Here are the basic steps to get this done:
-
Generate a token and apply it to your content. Extract the token's
session_id
value for use later in this process. -
Add a revocation list to establish a new list. Store the
name
you set for it. -
Create a new AMD property. You can use the Property Manager API (PAPI) for this.
-
Enable token authentication via the
segmentedContentProtection
behavior in an applicable rule. You need to set at least these values:-
enabled
. Set totrue
. -
key
. You need to generate an access token to be used. This is the secret "key" value you used when generating it. -
useAdvanced
. Set totrue
. -
sessionId
. Set totrue
. -
tokenRevocationEnabled
. Set totrue
.
-
-
Save the AMD property and activate it on the staging network to test it. When you're satisfied, activate it on the production network to start delivering your media.
-
Revoke tokens to add one or more offending tokens to the revocation list. This blocks requests that include them from access.
Sample usage: add and enable a revocation list
This quick example shows how to create and apply all of the components used in a revocation list, so you can revoke tokens.
-
Generate a token and apply it to your content. Extract the token's
session_id
value for use later in this process. -
Add a revocation list to establish a new list. Store the
name
you set for it. -
Create a new AMD property, or access an existing one in Property Manager on Control Center.
-
Enable Token Authentication via the Segmented Media Protection behavior in an applicable rule.
-
Set Advanced Options to On.
-
In the Field Carry-Over options, ensure Session-Id is set to Yes.
-
Set the Token Revocation slider to On.
-
In the Revocation List Name drop-down, select the revocation list you created with the API.
-
Save the AMD property and activate it on the production network to start delivering your media.
-
Revoke tokens to add one or more offending tokens to the revocation list. This blocks requests that include them from access.