Usage 

The extension exposes PHP classes rather than an editor-facing interface.

Generate a URL 

Create a SecureLinkFactory with a resource reference and optional lifetime in seconds. The actual default is 86,400 seconds (24 hours).

Generate a relative secure download URL
use Maagit\Maagitseclink\Factory\SecureLinkFactory;
use TYPO3\CMS\Core\Utility\GeneralUtility;

$factory = GeneralUtility::makeInstance(
    SecureLinkFactory::class,
    'fileadmin/downloads/example.pdf', // Public example file
    3600,
);
$relativeUrl = $factory->getUrl();
Copied!

The result resembles download/sdl-<signed-token>/example.pdf. The signed token, not the descriptive filename segment, determines the resource.

Valid resources 

Input may be a path below TYPO3's public directory or a TYPO3 t3:// file reference resolvable in a frontend request. The canonical path must identify a readable regular file below the public directory. Remote URLs and files outside that directory are rejected.

The public \Maagit\Maagitseclink\Frontend\SecureLink helper can build an absolute HTML link. The consuming integration must supply its inputs; the package does not register that integration automatically.

Operational checks 

Test a new link, an expired link, and a missing file. Success must download the intended file; failures must reach the access-denied page without disclosing a filesystem path.