| 1 |
Source: django-titofisto |
| 2 |
Maintainer: Debian Python Team <[email protected]> |
| 3 |
Uploaders: Dominik George <[email protected]> |
| 4 |
Section: python |
| 5 |
Priority: optional |
| 6 |
Build-Depends: |
| 7 |
debhelper-compat (= 13), |
| 8 |
dh-sequence-python3, |
| 9 |
pybuild-plugin-pyproject, |
| 10 |
python3-all, |
| 11 |
python3-django, |
| 12 |
python3-freezegun, |
| 13 |
python3-poetry-core, |
| 14 |
python3-shortuuid, |
| 15 |
Standards-Version: 4.7.0 |
| 16 |
Homepage: https://edugit.org/AlekSIS/libs/django-titofisto |
| 17 |
Vcs-Git: https://salsa.debian.org/python-team/packages/django-titofisto.git |
| 18 |
Vcs-Browser: https://salsa.debian.org/python-team/packages/django-titofisto |
| 19 |
|
| 20 |
Package: python3-django-titofisto |
| 21 |
Architecture: all |
| 22 |
Depends: ${misc:Depends}, ${python3:Depends} |
| 23 |
Description: Django Time-Token File Storage |
| 24 |
Titofisto is a simple extension to Django's FileSystemStorage that adds a URL |
| 25 |
parameter carrying a shared token, which is only valid for a defined period |
| 26 |
of time. |
| 27 |
. |
| 28 |
It is a drop-in replacement for the Django FileSystemStorage, usable if |
| 29 |
media files are served by Django itself. It does currently not work if media |
| 30 |
files are served from an independent web server. |
| 31 |
. |
| 32 |
The storage and its accompanying view do the following: |
| 33 |
. |
| 34 |
* When a URL to a storage file is generated, a HMAC-based token is generated |
| 35 |
* The token and the timestamp when it was generated are appended as request |
| 36 |
parameters to the URL |
| 37 |
* Upon retrieval of the file through the accompanying view, the requested |
| 38 |
file name and the passed timestamp are used to recalculate the HMAC-based |
| 39 |
token |
| 40 |
* Only if the tokens match, and a configured timeout has not passed, is the |
| 41 |
file served |