When deploying your IdentityServer to production, you will need to configure your license key. This can be configured in one of two ways:
Duende IdentityServer will look for a file called Duende_License.key in the same directory as your hosting application. If present, the contents of the file will be loaded as the license key.
If you prefer to load the license key dynamically (e.g. from an API or environment variable), you can in your startup code. When calling AddIdentityServer from ConfigureServices, you can pass a lambda expression to configure various options in your IdentityServer. The LicenseKey is one such setting.
The contents of the license key file is text, and so that is the value to assign to the LicenseKey property. For example:
public void ConfigureServices(IServiceCollection services)
options.LicenseKey = "eyJhbG..."; // the contents of the license key file
All license validation is self-contained and does not leave the host (meaning there are no outbound calls related to license validation). Any messages from the license validation layer will be emitted to the logging system. The level of the log entry depends on the nature of the message and the type of license.
|Type of Message
|Redistribution License (development*)
|Redistribution License (production*)
|Startup, missing license
|Startup, license details
|Startup, valid license notice
* as determined by IHostEnvironment.IsDevelopment()