AuthTokenConfig
class AuthTokenConfig extends BaseConfigSection
Defines the configuration for delivering token-based authenticated media assets.
Learn more: Delivering token based authenticated media assets
Properties
string | $key | (Required) – the token must be signed with the encryption key received from Cloudinary. | |
string | $ip | (Optional) – only this IP address can access the resource. | |
string|array | $acl | (Optional) – an Access Control List for limiting the allowed URL path to a specified pattern (e.g., /video/authenticated/*). | |
int | $startTime | (Optional) – timestamp of the UNIX time when the URL becomes valid. Default value: the current time. | |
int | $expiration | (Optional) – timestamp of the UNIX time when the URL expires. | |
int | $duration | (Optional) – the duration that the URL is valid in seconds (counted from start_time). |
Constants
CONFIG_NAME |
|
KEY |
|
IP |
|
ACL |
|
START_TIME |
|
EXPIRATION |
|
DURATION |
|