Licensing a desktop application
A vendor shipping a desktop application — sold perpetual or by subscription, activated with a code, locked to the machine, and expected to keep working offline.
The setup: the application embeds the license client; no secret ships in the binary. The app sends the code and the machine’s fingerprint and receives a signed license it verifies locally.
How the pieces map
Section titled “How the pieces map”| You need | You use |
|---|---|
| A license key the customer types in | An activation code issued per entitlement |
| A license locked to one machine | Node-locking via the device fingerprint; with Fingerprint component matching set to a tolerant option such as Any component matches, a new network card still matches the same seat |
| A 14-day trial | A trial policy — same build, time-boxed license |
| Works offline for weeks | The on-disk license cache and a lease long enough for the gap, or a borrowed seat when a laptop goes on the road; the app validates the signed license without a network |
| Edition gates (Standard vs Pro) | Features in the license token, checked locally |
| A shared pool of team seats | A floating license: N concurrent seats per entitlement; workstations check a seat out on activation and back in on release, and the service — not the app — refuses the N+1th checkout |
| À-la-carte add-on modules | Add-ons granted to the entitlement (bought outright or time-boxed); the granted features merge into the next license the customer’s app fetches — no new build, no reinstall |
| Perpetual or subscription — same build | The entitlement’s subscription policy decides; the license token carries the model, so the app renders “never expires” or the renewal date from the same code path |
| “I got a new laptop” | The customer re-activates with the same code once the old machine’s seat is free: the old machine releases it, or you release or deactivate it (support tasks). On a floating license with a lease time, the seat also frees when its lease runs out |
Integration sketch
Section titled “Integration sketch”- Build the client once at startup:
LicenseClientBuilderwith the activation code the user entered, aDeviceNodeId, the pinned public key, and the on-disk license store. - Gate features from
AccessLicenseAsync()— every check is local and instant. An expired or tampered license fails validation. - The lease handles connectivity: the app renews it when online and runs on it between connections. When the license allows borrowing, the app can borrow its seat before a long trip for up to the license’s maximum borrow duration. Fully disconnected sites use the file-based offline flow instead.
- Optionally report feature usage and app events — telemetry that lands in the same dashboards as licensing data.
The whole runtime path is anonymous (when the entitlement allows it), signed in as the user, or license-token-authenticated: decompile the binary and there is no API secret to find, and no license to mint without the provider’s signing key.
The demo for this use case simulates its licensing in your browser: Atelier is a creative suite with a floating three-seat team pool, add-on modules bought from inside the app, and a perpetual-vs-subscription edition switch.
Start with the developer path.