> For the complete documentation index, see [llms.txt](https://clients.medianova.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clients.medianova.com/products/security/security-token.md). Agents can also search and read this documentation through its [MCP server](https://clients.medianova.com/~gitbook/mcp).

# Security Token

Learn how to configure Security Token and choose the appropriate access protection method for your CDN content.

Security Token restricts access to protected CDN content using signed URLs. The CDN validates each token before delivering the requested content.

You can configure expiration times and additional restrictions based on the selected token type. Available options vary by CDN Resource type.

## How Security Token works

Security Token uses a secret key shared between your application and Medianova CDN.

The validation process follows these stages:

1. **Token generation:** Your application generates a signed URL using the configured secret key and required signing parameters.
2. **Content request:** A client requests protected content using the signed URL.
3. **Token validation:** Medianova CDN checks the signature, expiration time, and applicable access restrictions.
4. **Request handling:** The CDN processes valid requests and rejects requests that fail token validation.

<figure><img src="https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2FLZQSgOsKktkaqQELR7es%2Fimage.png?alt=media&amp;token=2b3e2520-9ee9-4df9-9145-74503314dde2" alt="" width="530"><figcaption><p>Security Token generation and validation at the Medianova CDN edge.</p></figcaption></figure>

The signing method and required parameters depend on the selected token type.

## Supported CDN Resource types

Security Token is available for the following CDN Resource types:

| CDN Resource type | Availability  |
| ----------------- | ------------- |
| Small CDN         | Supported     |
| Large CDN         | Supported     |
| Live Stream       | Supported     |
| VOD               | Supported     |
| Dynamic           | Not supported |

{% hint style="info" %}
Large CDN supports both Static Large Files and Live Stream delivery modes. Available token types and configuration settings vary by CDN Resource type and delivery mode.
{% endhint %}

## Configure Security Token

Use the Medianova Control Panel to enable Security Token for a supported CDN Resource.

{% stepper %}
{% step %}

#### Select a CDN Resource

Open the CDN Resource you want to protect in the [Medianova Control Panel](https://cloud.medianova.com).
{% endstep %}

{% step %}

#### Open Security settings

Navigate to **Security → General**.

<figure><img src="https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2FAypwGdTA54k5C5gDmppE%2Fimage.png?alt=media&amp;token=ab7c69eb-ff6d-41a0-a10f-5269f6f8ba02" alt=""><figcaption><p>Navigate to Security → General in the Medianova Control Panel.</p></figcaption></figure>
{% endstep %}

{% step %}

#### Enable Security Token

Locate the **Security Token** card and enable the feature.

<figure><img src="https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2FroH6M1thH7ElYmshmaIn%2Fimage.png?alt=media&amp;token=7d0a7a95-a938-4e29-913b-c89aff3903b3" alt=""><figcaption><p>Security Token enabled for a CDN Resource.</p></figcaption></figure>
{% endstep %}

{% step %}

#### Select a token type

Choose a supported option from **Token Type**.

The available options depend on the selected CDN Resource.
{% endstep %}

{% step %}

#### Configure the token settings

Enter the required settings for the selected token type.

Refer to the corresponding token guide for signing requirements.
{% endstep %}

{% step %}

#### Save the configuration

Click **Save** to apply your changes.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Keep your Token Key confidential. Replacing the key can invalidate previously generated signed URLs.
{% endhint %}

<figure><img src="https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2FKwufITlnU1loTNiTS887%2Fimage.png?alt=media&amp;token=fc752b9c-098f-4912-956a-3f84f11ac9d3" alt=""><figcaption><p>Token Type Dropdown</p></figcaption></figure>

## Caching Considerations

When using Security Token, disable [Query String Caching](https://clients.medianova.com/products/performance-cdn/static-content-delivery/advanced-configuration/caching/query-string-caching.md) for the CDN Resource.

{% hint style="warning" %}
Security Token requires Query String Caching to be disabled. Review your caching configuration before enabling Security Token.
{% endhint %}

## Choose a Security Token type

Select a token type based on the content you want to protect and the required access restrictions.

<table><thead><tr><th width="285">Token type</th><th>Primary use case</th></tr></thead><tbody><tr><td><a href="https://clients.medianova.com/products/security/security-token/standard-secure-token.md">Standard Secure Token</a></td><td>Time-limited access to individual files</td></tr><tr><td><a href="https://clients.medianova.com/products/security/security-token/secure-token-ip-and-cookie-lock.md">Secure Token – IP &#x26; Cookie Lock</a></td><td>Access restricted by IP address and cookie values</td></tr><tr><td><a href="https://clients.medianova.com/products/security/security-token/secure-token-v2.md">Secure Token v2</a></td><td>Directory-level or path-independent signing</td></tr><tr><td><a href="https://clients.medianova.com/products/security/security-token/secure-token-v2-ip-lock.md">Secure Token v2 – IP Lock</a></td><td>Directory-level protection with IP restrictions</td></tr><tr><td><a href="https://clients.medianova.com/products/security/security-token/secure-token-v2-country-lock.md">Secure Token v2 – Country Lock</a></td><td>Directory-level protection with country restrictions</td></tr><tr><td><a href="https://clients.medianova.com/products/security/security-token/parametric-secure-token.md">Parametric Secure Token</a></td><td>Configurable signing parameters</td></tr><tr><td><a href="https://clients.medianova.com/products/security/security-token/md5-secure-token.md">MD5 Secure Token</a></td><td>Integrations using a supported hexadecimal MD5 signature</td></tr><tr><td><a href="https://clients.medianova.com/products/security/security-token/streaming-secure-token.md">Streaming Secure Token</a></td><td>Signed access to supported streaming content</td></tr><tr><td><a href="https://clients.medianova.com/products/security/security-token/streaming-secure-token-ip-lock.md">Streaming Secure Token – IP Lock</a></td><td>Streaming access restricted by client IP address</td></tr><tr><td><a href="https://clients.medianova.com/products/security/security-token/auth-token-2-0.md">Auth Token 2.0</a></td><td>EdgeAuth-compatible authentication</td></tr></tbody></table>

### Protect individual files

Use **Standard Secure Token** to generate signed URLs for individual files.

The signature includes the requested file path. This method supports expiration-based access control.

{% hint style="info" %}
For signing requirements and examples, see the [Standard Secure Token](https://clients.medianova.com/products/security/security-token/standard-secure-token.md) guide.
{% endhint %}

### Protect directories

Use **Secure Token v2** to protect files within a directory using a shared signature.

The signing scope depends on the Token URI configuration.

{% hint style="info" %}
For directory-signing requirements, see the [Secure Token v2](https://clients.medianova.com/products/security/security-token/secure-token-v2.md) guide.
{% endhint %}

### Restrict access by IP address or country

Use a supported restriction-based token type when access must depend on client information.

* [**Secure Token v2 – IP Lock**](https://clients.medianova.com/products/security/security-token/secure-token-v2-ip-lock.md)**:** Binds the token to a client IP address.
* [**Secure Token v2 – Country Lock**](https://clients.medianova.com/products/security/security-token/secure-token-v2-country-lock.md)**:** Binds the token to a country.
* [**Secure Token – IP & Cookie Lock**](https://clients.medianova.com/products/security/security-token/secure-token-ip-and-cookie-lock.md)**:** Uses the client IP address and configured cookie values.

These restrictions require the application to include the appropriate information when generating the signature.

### Protect streaming content

Streaming Secure Token types provide signed access to supported media delivery workflows.

Select [**Streaming Secure Token – IP Lock**](https://clients.medianova.com/products/security/security-token/streaming-secure-token-ip-lock.md) when the workflow also requires client IP restrictions.

### Use Auth Token 2.0

[Auth Token 2.0](https://clients.medianova.com/products/security/security-token/auth-token-2-0.md) provides an EdgeAuth-compatible authentication method.

Its token format and configuration requirements differ from other Security Token types.

Refer to the existing Auth Token 2.0 documentation for integration details.

## Understand Security Token settings

The Security Token card displays configuration options based on the selected token type.

<table><thead><tr><th width="235.5">Setting</th><th>Description</th></tr></thead><tbody><tr><td>Token Type</td><td>Selects the token validation method.</td></tr><tr><td>Token Key</td><td>Defines the secret key used for token signing and validation.</td></tr><tr><td>Token URI</td><td>Controls URI-related signing behavior for supported token types.</td></tr><tr><td>Token Timezone</td><td>Provides timezone configuration where supported.</td></tr><tr><td>Rate Limit</td><td>Provides rate-related settings for supported configurations.</td></tr></tbody></table>

Some token types require additional settings, including cookie parameters or streaming-specific keys.

## Validate Security Token requests

Test the configuration before using signed URLs in production.

For the six token types validated on Small CDN, the following responses have been confirmed:

| Condition     | HTTP response                        |
| ------------- | ------------------------------------ |
| Valid token   | Request proceeds to content delivery |
| Missing token | 403 Forbidden                        |
| Invalid token | 403 Forbidden                        |
| Expired token | 410 Gone                             |

{% hint style="info" %}
These responses apply to the validated Small CDN token types. Other delivery platforms may use different validation behavior.
{% endhint %}

## Security recommendations

Follow these practices when implementing Security Token:

* Generate signed URLs on a trusted backend.
* Store Token Keys securely.
* Use expiration times appropriate for the content.
* Apply IP, country, or cookie restrictions only when required.
* Update your signing application when changing Token Keys.
* Test valid, invalid, and expired tokens before deployment.

Never include secret keys in client-side code, public repositories, or shared logs.

## Troubleshoot Security Token

### HTTP 403 Forbidden

For validated Small CDN token types, HTTP 403 indicates that token validation failed.

Check the following:

* The request includes the required token parameters.
* The application uses the correct Token Key.
* The signature matches the requested content.
* The client satisfies the configured access restrictions.

### HTTP 410 Gone

For validated Small CDN token types, HTTP 410 indicates that the token has expired.

Generate a new signed URL with a valid expiration time.

### Signed URLs stop working after a key change

Changing the Token Key can invalidate existing signed URLs.

Verify that your application uses the current key and generates new signatures.

### A token type is unavailable

The available token types depend on the CDN Resource.

Check the selected resource and its supported Security Token options.

## Need help?

{% hint style="info" %}
Contact the [Medianova Support Team](https://clients.medianova.com/support-and-troubleshooting/contacting-customer-support.md) if you need assistance with Security Token configuration or validation.&#x20;

Include the CDN Resource type, selected token type, HTTP response, and a sanitized request URL.&#x20;

Do not share secret keys or credentials in support requests.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://clients.medianova.com/products/security/security-token.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
