Licensing: how license keys work
What a license of an Exponential App Store gives a buyer, how its key opens the registry, and how to install a licensed app with Composer. The technical details are in LICENSES.md.
German: ger-de/licensing.md.
A license and its key
- Bound to the buyer. A license belongs to the buyer's account on the store (appstore.exponential.earth or appstore.se7enx.com). It is not bound to a site or a domain.
- Unlimited sites. One license works on every site the buyer owns. The key may not be shared: the GPL code may be, the service may not. Downloads are logged with a hashed address, and unusual patterns are flagged to the store's staff.
- Made by the registry. The registry makes the key for the purchase, scoped to the app's package (and to every package of a bundle), the buyer and, for a subscription, the end of the paid period. The registry stores only its SHA-256 hash.
- Delivered once. The key is shown once on the store's return page and mailed once with the receipt; a purchase
from a site's admin hands it once to that site, which keeps it under Setup > Secrets as
appstore_license_<vendor>_<name>. - Checked only on download. The registry checks the key when Composer (or git_manager, or a signed download link) fetches a release. Installed apps never phone home, and nothing stops working on a site because of the license.
What a license covers
| Kind | Updates | When it ends |
|---|---|---|
One-time (lifetime) | every version, unless the seller prices major upgrades: then up to the last major version bought | never; a refund revokes it |
| Subscription | every version while it runs | at the end of the paid period, unless renewed |
- Renewal. A subscription renews monthly or yearly through the payment provider, and each renewal moves the license and its key on to the new end of the period: the same key keeps working. Crypto (TRON) subscriptions do not renew by themselves; a reminder with a payment link comes before the period ends.
- After a subscription ends the app keeps running at the last version received. Downloads, updates and support stop until a renewal. A subscription can be cancelled at any time and stays active to the end of the period.
- After a refund the license and its key are revoked: the registry refuses the next download. The installed GPL code keeps running.
Installing a licensed app with Composer
The store's app page and the receipt name the registry of the app (packages.exponential.earth or packages.se7enx.com). Add the registry and the key, then require the package:
composer config repositories.exp-market composer https://packages.exponential.earth
composer config http-basic.packages.exponential.earth token <key>
composer require <vendor/package>The user name is token and the key is the password. composer config writes the key to the project's auth.json (or
your global one with --global); keep that file out of version control.
COMPOSER_AUTH: the key for one run only
To keep the key out of every file, give it to Composer in the environment for the one command:
COMPOSER_AUTH='{"http-basic":{"packages.exponential.earth":{"username":"token","password":"<key>"}}}' \
composer update <vendor/package> --with-dependenciesThis is what a site's App Store does by itself: for an install or update of an app whose key the site holds, it adds
the registry to composer.json's repositories (as registry-<host>) and gives Composer the key in COMPOSER_AUTH for
that run only. The key is never written to a file or to the run's log, and it is taken out of the environment however
the run ends.
git_manager and manual downloads
- git_manager uses the same key for licensed git installs (the App Store's git method).
- The store's account page (
market/account) makes signed download links to a release's zip file, valid for 24 hours, for an installation without Composer.
See also
- LICENSES.md: keys, licensed installs, signed downloads, buying from a site's admin (technical)
- The buyer guide: exp_app_store doc/buyer-guide.md
- The registry page: exp_package_registry doc/registry.md