Configuration 

The token lifetime is supplied by project code. The error redirect target is a site setting and can therefore be configured independently for every TYPO3 site.

Name Purpose Default Notes
expireTime Token lifetime in seconds 86400 Integer supplied to SecureLinkFactory`` or :php:``SecureLink . Expiry starts at request execution time.

Error redirect page 

The site setting maagitseclink.errorRedirectPageId selects the page used when a secure download cannot be delivered. Its type is page, so TYPO3 provides a page browser in the site settings editor and stores the selected page UID.

The setting is available only after the site set maagit/maagitseclink has been added to the respective site's dependencies. Open Sites > Setup, edit the site configuration and add MaagIT Secure Link to the site sets. Then open Sites > Setup > Settings, edit the site settings and select the access-denied page below MaagIT Secure Link > Pages.

TYPO3's site router generates the redirect URL from the configured page UID, the current site and the current site language. Slugs, language prefixes, domains and site base paths therefore do not need to be stored in the extension configuration.

The default value is 0. If no page is selected, no site can be resolved or URL generation fails, the extension falls back to /error/access-denied for backward compatibility.

Fixed behaviour 

  • URL prefix: /download/sdl-
  • JWT algorithm: HS256
  • signing key: TYPO3's system encryption key