SLASCONE supports license files for software installations that cannot connect to the internet. Software vendors can manage licenses centrally in SLASCONE while the licensed applications operate completely offline. Some online capabilities, such as real-time license updates and usage analytics, are not available on disconnected clients.
When an installation is offline, there are two options:
Use a temporary internet connection for online activation, if the deployment permits it.
SLASCONE generates digitally signed XML license files that can be verified locally. For device-bound licensing, use preactivation or two-step activation as described below.
For such cases, SLASCONE allows you to create a digitally signed xml license file. This mechanism allows you to at least activate a completely offline installation.
It is beyond this article's scope to explain how xml signatures work. More about this topic can be found here.
ENABLING LICENSE FILES
The license file functionality can be enabled as a product property.
VARIABLES
You can use several variables (e.g., ##licensekey##) in the license file name. These variables are available:
| Variable | Value |
|---|---|
| ##product## | The name of the product. |
| ##edition## | The selected edition |
| ##customernumber## | Customer number |
| ##licensekey## | License key |
| ##legacykey## | Legacy license key |
| ##description## | License description |
| ##expirationdate## | Expiration date |
DISTRIBUTING LICENSE FILES
You can just download the license file as it is shown here:
or use the send license email functionality. In this case, you can choose if the license file should be attached to the email.
SELF-SERVICE ACCESS THROUGH THE CUSTOMER PORTAL
As an alternative to sending license files manually, the software vendor can optionally enable the Customer Portal. When enabled, customers can access their license files through the portal and download them whenever needed.
If a license is modified, SLASCONE creates a new revision_id. When an updated license file is available, the Customer Portal prominently highlights it, making it easy for customers to identify and download the latest version. This is particularly helpful for license renewals, feature upgrades, and other entitlement changes.
Note: Customers can access the Customer Portal from an internet-connected device even if the licensed software runs in a completely offline environment. The updated file must still be transferred to the offline installation and applied there. Downloading a newer revision does not automatically update or deactivate an existing offline installation.
CLIENT/API CONSIDERATIONS
Your application may support online activation with a license key, offline activation with a license file, or both. Choose the workflow that matches your customers' connectivity requirements:
PARSING THE LICENSING FILE
The structure and fields of the XML license file are similar to the response of the activation function (LicenseDto). You can download a sample file here.
LICENSE REVISIONS
Every time a license is changed in SLASCONE, a new revision_id is created. The revision_id is included in the generated XML license file and identifies the revision from which that file was created.
When a new offline activation is requested, SLASCONE validates the revision against the license's latest revision. An activation request using an outdated revision_id is rejected. To activate after a license change, generate a new license file and use the updated revision in the activation request.
Important: This validation happens when an activation request is processed by SLASCONE. It does not automatically invalidate a file or activation already installed on a permanently offline device, which cannot check the latest cloud revision.
PROTECTION AGAINST MULTIPLE ACTIVATIONS
Unlike online licensing, an offline installation cannot contact SLASCONE to confirm whether another device is already using the same license. SLASCONE therefore provides device-bound activation methods and an optional policy to restrict how many offline activations a license can receive. There are two device-binding approaches:
preactivation
2-step activation
MAXIMUM NUMBER OF OFFLINE ACTIVATIONS
An optional edition property lets you limit the number of allowed offline activations for a given license. By default, the limit is unlimited.
Unlimited (default): No numerical activation limit is enforced by this property.
1: One device can be authorized. An activation request for a different device is rejected unless an existing activation is marked as irrelevant. Renewing the activation on the same previously authorized
client_iddoes not consume another activation.Higher values: Allow up to the configured number of offline activations for that license.
This property controls new activation requests. It does not deactivate previously issued offline activations or provide a mechanism for remotely revoking an already installed license file. Choose a value that accommodates legitimate hardware replacements and migrations.
CANCELING OFFLINE ACTIVATIONS
In certain situations, such as hardware replacement or migration, a previously issued offline activation may no longer be relevant.
To accommodate such scenarios, SLASCONE allows the software vendor to mark individual offline activations as irrelevant. These activations are then excluded from the calculation of the maximum number of allowed offline activations.
For example, if the maximum number of offline activations is set to 1 and the license has already been activated, the vendor can mark the existing activation as irrelevant. This allows the customer to activate the license on another device without changing the configured activation limit.
Important: Marking an activation as irrelevant is an administrative operation. It does not remotely deactivate the previously activated installation or invalidate any license files already in use. The software vendor should therefore only use this functionality when the previous activation is no longer required or has been replaced.
PREACTIVATION
The process of preactivation has been significantly simplified. Instead of using a generic extra variable, you can now use the out-of-the-box "preactivation client-id" field when saving the license, or activate a token after the generation of a license. Make sure that your edition is configured with the following property.
When creating a license, the client_id is required:
In this case, the generated license/token file includes the element client_id.
When trying to activate such a license file, the client (your software) has to make sure that its client_id matches the client_id of the license file. If you are using our official NuGet package, this check is performed automatically.
Obviously, this approach is only viable if you know the client_id of the target machine. This might be the case if you are the hardware manufacturer (IoT scenarios), but becomes problematic in typical desktop or web applications. In the later case, it is recommended to use the 2-step activation.
2-STEP ACTIVATION
The 2-step activation is a hybrid mode, enabling an activation through a "proxy" device, which has connection to the internet. In this scenario, not one, but two xml files are necessary:
the license file
the activation file
Step 1: Generate a license file as explained above. The offline client reads this file and prepares an activation request containing the license information, including the license file's revision, and the target device's client_id. The request can be transferred as text or a QR code to an internet-connected proxy device:
GET /isv/{isv_id}/provisioning/activations/offlineUse the parameters required by the current offline activation API. The request must contain the revision information from the license file so that SLASCONE can validate it.
or a qr code:
Step 2: Transfer the activation request to an internet-connected proxy computer or mobile device. SLASCONE validates the request. If the revision_id is no longer current, or a new device activation would exceed the configured maximum number of offline activations, the request is rejected. Otherwise, SLASCONE generates an XML activation file for transfer back to the offline device. Renewing an activation for the same previously authorized client_id does not consume an additional activation.
This has to be inserted in the target (offline) client, which then successfully activates the software if:
the two xml files contain the same license_key.
the client_id contained in the activation file, is identical to the device's unique id.
In any other case, the activation is not successful.
OFFLINE LICENSE RENEWAL
When an offline license is renewed, for example by extending its expiration date, SLASCONE creates a new revision_id. The updated license file can be downloaded by the software vendor or, if enabled, directly by the customer through the Customer Portal.
We strongly recommend performing a new offline activation whenever a license is renewed, even if the software remains installed on the same device. This allows SLASCONE to validate the latest license revision, enforce the applicable activation policies, and record the renewed activation in the activation history.
For two-step activation, download the updated license file and repeat the offline activation process described above to obtain a new activation file. Transfer both files to the offline installation and apply them there.
Important: Reactivating a previously authorized device with the same client_id does not count as an additional activation and therefore does not consume the configured maximum number of allowed offline activations. Simply replacing the license file without repeating the activation process does not trigger server-side validation or record a new activation in SLASCONE. As the installation remains offline, SLASCONE cannot automatically confirm that the updated files have been installed.
PROTECTION AGAINST FILE MANIPULATION
Similar to the content of every API response (in json format), the content of the xml file is digitally signed in order to prevent file manipulation. The signature value is attached on the bottom of the xml license.
LICENSE DEACTIVATION
Deactivation or unassignment is typically required when a customer replaces or migrates hardware. For an online client, SLASCONE can interact with the client during this process. For a permanently offline client, however, SLASCONE cannot verify that an earlier license file has been removed or that the old installation has stopped using it.
The optional maximum-offline-activations edition property helps control the issuance of additional offline activations, including after hardware replacement. If the limit has been reached, the software vendor can mark an earlier activation as irrelevant, allowing a replacement device to be activated without increasing the configured limit. Reactivation on the same previously authorized device, such as during license renewal, does not consume an additional activation. Customers should contact their software vendor if a replacement activation is needed.
Note: Changing a license, issuing a new revision_id, or unassigning a client in SLASCONE does not remotely revoke a previously installed offline license file. The revision check and activation limit protect subsequent activation requests, not already-running disconnected installations.
SWITCHING BETWEEN ONLINE AND OFFLINE MODE
OFFLINE -> ONLINE
This scenario is pretty straightforward, since the license file already contains the unique license_key. You can use this key to activate this license (without any user intervention), thus enabling a seamless switch.
ONLINE -> OFFLINE
In case a client goes permanently offline, a license file is needed.
Comments
0 comments
Please sign in to leave a comment.