uploadcare / pyuploadcare

Build file handling in minutes. Upload or accept user-generated content, store, transform, optimize, and deliver images, videos, and documents to billions of users.
https://uploadcare.com/
MIT License
127 stars 31 forks source link

Generating wildcard ACL and URL tokens for Akamai #265

Closed evgkirov closed 1 year ago

evgkirov commented 1 year ago

Related issues: #263 and #264.

This pull request introduces the ability to generate secure URLs with the same signature valid not only for the base URL of the file (e.g., https://cdn.yourdomain.com/52da3bfc-7cd8-4861-8b05-126fef7a6994/) but also for all of its transformations (#264). This is optional by default.

Also, AkamaiSecureUrlBuilderWithUrlToken class has been implemented (#263).

A new method called generate_secure_url_token is exposed for Uploadcare. Instead of full URL it will return just the token (unlike the generate_secure_url method).

Added

Changed