Token Signing Key Secret
Overview
The Token Signing Key Secret is a crucial component for security within the Fastevo Media Protection Platform (Fastevo MP2). This single key is used for:
- Signing playback tokens: To authenticate and authorize access to media content (see Playback Tokens)
- Signing Engage Kit URLs: To protect preview assets when using the signed access policy (see Engage Kit Restrictions)
This unified approach ensures consistent security across all signed resources in your project.
Generating a Token Signing Key Secret
To generate a new Token Signing Key Secret, you need to perform a POST request to the following endpoint:
POST https://api.fastevo.net/api/v1/projects/mediaProtection/configurations/general/rotateTokenSigningKeySecretThis endpoint will generate a new key that will be used to sign playback tokens.
Example Request
POST https://api.fastevo.net/api/v1/projects/mediaProtection/configurations/general/rotateTokenSigningKeySecretAPI Response
After successfully generating a new Token Signing Key Secret, the API will return a response with a status code of 200 and a JSON body containing the new key.
Example Success Response
{
"tokenSigningKeySecret": "newlyGeneratedKeySecret"
}Retrieving the Current Token Signing Key Secret
To retrieve the current Token Signing Key Secret, you need to perform a GET request to the following endpoint:
GET https://api.fastevo.net/api/v1/projects/mediaProtection/configurations/general/tokenSigningKeySecretThis endpoint will return the current key that is being used to sign playback tokens.
Example Request
GET https://api.fastevo.net/api/v1/projects/mediaProtection/configurations/general/tokenSigningKeySecretAPI Response
After successfully retrieving the current Token Signing Key Secret, the API will return a response with a status code of 200 and a JSON body containing the current key.
Example Success Response
{
"tokenSigningKeySecret": "currentKeySecret"
}This key is used for multiple purposes:
- Signing playback tokens - see Playback Tokens
- Signing Engage Kit URLs when using signed access policy - see Engage Kit Restrictions
Keep this key secure! It provides access to both your media content and preview assets. Rotate it regularly for enhanced security.