Getting Started
Installation
Rivlo Licensing can be installed from the NuGet package manager by looking for the package: Rivlo.Licensing
If you prefer using the console use:
dotnet add package Rivlo.FriendlyMembers
Versioning is linked to the supported Umbraco version. For Umbraco 10 install version 10.x.x or for Umbraco 13 use 13.x.x
Usage
For a basic implementation add the following in your Composer or Startup class:
builder.AddUmbLicensing(new LicenceOptions
{
ProductName = "MyPackageName",
RelativeLicensePath = "App_Plugins/MyPackageName/licence.lic",
PublicKeyPem = "
-----BEGIN PUBLIC KEY-----
...your public key here...
-----END PUBLIC KEY-----
"
});
You can specify the following options:
- ProductName - name of the product being licensed.
- RelativeLicencePath - the path where users should install the licence for your product.
- MasterRelativeLicensePath - if master licences should be installed in a different, package-independant folder specify it here.
- PublicKeyPem - your public key used to validate licence signatures.
- MasterPublicKeyPem - you can pass an additional public key if you use a different key pair to sign master or bundle licences.
- TrialDays - specify the number of free trial days available.
- TrialIdKey - specify an identifier to track the trial period.
- AlwaysAllowedDomains - a list of domains which are automatically allowed (for example "localhost"),
- CustomRule - specify additional "soft" validation rules applied after the licence has been validated.