Drupal is a registered trademark of Dries Buytaert
drupal 10.6.12 Update released for Drupal core (10.6.12)! drupal 11.3.13 Update released for Drupal core (11.3.13)! drupal 10.6.11 Update released for Drupal core (10.6.11)! drupal 11.3.12 Update released for Drupal core (11.3.12)! drupal 11.2.14 Update released for Drupal core (11.2.14)! drupal 10.5.12 Update released for Drupal core (10.5.12)! cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)!

private_file_token

337 sites Security covered
View on drupal.org

Provides access to private files and images by injecting authentication token with a timestamp into their urls. Such a token will be validated when such url is accessed and in case of successful validation the access will be granted. Token is valid for certain period of time.

The intended use case is for decoupled sites which relies on non-cookie authentication. For example when the site uses JWT header authentication. Without a cookie the private files or images cannot be accessed because no form of authentication has been provided (the cookie is missing). This module solves this problem by introducing authentication via token, which is valid for a configurable amount of time.

Example of a private image url containing authentication token and timestamp:

https://example.site/system/files/styles/thumbnail/private/resume/photo/profile_image.png?token=rEezZ9fNlupFtiWb98lJlwct4jFz96987uJovl_c_Zs&timestamp=1605024462&itok=NxuIebsw

Token will be validated along with the timestamp and the path part of the image url. Parameter itok still exists in the url as it is required by Drupal to actually generate image style of the image.

Activity

Total releases
1
First release
Jun 2026
Latest release
1 day ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.1 Stable Jun 24, 2026