Version 5.x has been out of support since December 13, 2022, and this corresponding section of the documentation is no longer maintained. We strongly recommend upgrading to a supported version.
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_IdentityServer_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, 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. For example:
public void ConfigureServices(IServiceCollection services)
options.LicenseKey = "your_license_key";