Skip to content
Introducing the next era of Duende IdentityServer. Read our CEO’s announcement

Licensing

Duende products, except for our open source tools, require a license for production use. The Duende Software website provides an overview of different products and license editions.

Licenses can be configured via a file system, programmatic startup, or external configuration services like Azure Key Vault, with trial mode available for development and testing.

Duende IdentityServer requires a license for production use, with three editions available (Starter, Business, and Enterprise) that offer various features based on organizational needs. A community edition is available as well.

There are three license editions which include different features.

The Lite edition includes the core OIDC and OAuth protocol implementation. This is an economical option that is a good fit for organizations with basic needs. It’s also a great choice if you have an aging IdentityServer4 implementation that needs to be updated and licensed. The Lite edition includes all the features that were part of IdentityServer4, along with support for the latest .NET releases, improved observability through OpenTelemetry support, and years of bug fixes and enhancements.

The Standard edition adds additional features that go beyond the core protocol support included in the Starter edition. This is a popular license because it adds the most commonly needed tools and features outside a basic protocol implementation. Feature highlights include resource isolation, the OpenId Connect CIBA flow support, and server side sessions.

Finally, the Advanced edition includes everything in the Standard edition and adds support for features that are typically used by enterprises with particularly complex architectures or that handle particularly sensitive data. Highlights include automatic key management, SAML, and priority developer support.

This is the best option when you have a specific threat model or architectural need for these features.

The (legacy) Starter edition includes the core OIDC and OAuth protocol implementation.

The (legacy) Business edition adds additional features that go beyond the core protocol support included in the Starter edition. Feature highlights include support for server side sessions and automatic signing key management.

The (legacy) Enterprise edition includes everything in the Business edition and adds resource isolation, the OpenId Connect CIBA flow, and dynamic federation.

If you want to redistribute Duende IdentityServer to your customers as part of a product, you can use our redistributable license.

All license validation happens at runtime and is self-contained. It does not leave the host, and there are no outbound network calls related to license validation.

IdentityServer loads and parses the license key at startup. If the key is present but invalid, an error is logged at that point. Beyond that, no further checks happen at startup. IdentityServer does not compare your configuration against the license at startup; that all happens at runtime, when features are actively used.

IdentityServer never blocks or disables features at runtime based on licensing. A licensing oversight should never cause an outage. The runtime validator only logs; it does not prevent IdentityServer from functioning.

The following features are validated at runtime. If you use one of them without the required license entitlement, IdentityServer logs a warning (rate-limited to once every 5 minutes per feature):

For quantized limits like client count and issuer count, IdentityServer logs a warning when you exceed your licensed limit but stay within the grace threshold. If you exceed the grace threshold, it logs an error instead. An expired license also results in an error being logged.

Running IdentityServer without a license is perfectly fine for development, testing, and personal projects. There is no request limit and no automatic shutdown. All features remain available. The only difference you will notice is that IdentityServer logs a warning when you use a licensed feature without a license configured:

{FeatureName} is being used but no Duende license is configured.
Please start a conversation with us: https://duende.link/l/contact

These warnings are rate-limited to once per five minutes per feature, so they won’t flood your logs. You can silence them entirely by configuring a license key, even in non-production environments.

If you want to redistribute Duende IdentityServer to your customers as part of a product, you can use our redistributable license.

It can be cumbersome to deploy updated licenses in redistribution scenarios, especially if your deployment cycle does not coincide with the duration of your IdentityServer license. In that situation, update the license key at the next deployment to your redistribution customers. You are always responsible for ensuring your license is renewed.

The severity of log messages depends on the nature of the message. All messages are rate-limited to once per 5 minutes per feature or SKU.

Type of messageSeverity
Feature used, no license configuredWarning
Feature used, not covered by licenseWarning
Quantized limit exceeded (within grace threshold)Warning
Quantized limit exceeded (beyond grace threshold)Error
License expiredError
License validInformational

The Duende BFF Security Framework requires a license for production use, with two editions available (Starter and Enterprise) that offer various features based on organizational needs.

BFF is a library designed to enhance the security of browser-based applications by moving authentication flows to the server side. The Duende BFF Security Framework requires a license for production use, and is available in two editions that include different functionality based on organizational needs.

If you want to redistribute Duende BFF to your customers as part of a product, please reach out to sales.

The BFF license is validated during runtime. All license validation is self-contained and does not leave the host. There are no outbound network calls related to license validation.

BFF v3.1 does not technically enforce the presence of a license key. At runtime, if no license is present, an error message will be logged.

BFF v4 requires a valid license in production environments. When no license is present, the system operates in trial mode with a limitation of maximum of five sessions per host (not technically enforced) with any excess resulting in error logging.

Trial mode is also enabled when the license could not be validated, for example when the signature validation fails.

When an expired license is used, the system will continue to function with only a warning written to the logs, and not fall back to trial mode.

Using BFF without a license is considered Trial Mode. When running in Trial Mode, you will see the following error logged on startup:

You do not have a valid license key for the Duende software.
BFF will run in trial mode. This is allowed for development and testing scenarios.
If you are running in production you are required to have a licensed version.
Please start a conversation with us: https://duende.link/l/bff/contact

In Trial Mode, BFF will be limited to a maximum of five (5) sessions per host. Sessions exceeding the limit will cause the host to log an error for every consecutive authenticated session:

BFF is running in trial mode. The maximum number of allowed authenticated sessions (5) has been exceeded.
See https://duende.link/l/bff/trial for more information.

The trial mode session limit is not distributed or shared across multiple nodes.

The license key can be configured in one of three ways:

  • Via a well-known file on the file system
  • Via IConfiguration (for example, appsettings.json or environment variables)
  • Programmatically in your startup code

You can also use other configuration sources such as Azure Key Vault, by using the programmatic approach.

We consider the license key to be private to your organization, but not necessarily a secret. If you’re using private source control that is scoped to your organization, storing your license key within it is acceptable.

Duende products like IdentityServer and the BFF Security Framework look for a file named Duende_License.key in the ContentRootPath of your application. If present, the content of the file will be used as the license key.

By default, ContentRootPath is the directory that contains the application’s .csproj file during development, and the application’s base directory in published deployments. Place the license key file there:

MyIdentityServer/
├── Duende_License.key ← place license here
├── MyIdentityServer.csproj
├── Program.cs
├── appsettings.json
└── ...

IdentityServer can read the license key directly from IConfiguration, so you do not need to write any startup code. If LicenseKey is not set in your AddIdentityServer call, IdentityServer checks the following configuration keys in order, using the first non-empty value it finds:

  1. Duende:IdentityServer:LicenseKey
  2. Duende:LicenseKey

Whitespace is trimmed, and empty or whitespace-only values are ignored.

Add the license key to appsettings.json using the IdentityServer-specific key:

appsettings.json
{
"Duende": {
"IdentityServer": {
"LicenseKey": "eyJhbG..."
}
}
}

Or use the shorter key:

appsettings.json
{
"Duende": {
"LicenseKey": "eyJhbG..."
}
}

Because IConfiguration supports many providers, you can also supply the key via environment variables (for example, Duende__IdentityServer__LicenseKey or Duende__LicenseKey), Azure App Configuration, Azure Key Vault, or any other configuration source.

If you prefer to load the license key programmatically, you can do so in your startup code. This allows you to use the ASP.NET configuration system to load the license key from any configuration provider, including environment variables, appsettings.json, external configuration services such as Azure App Configuration, Azure Key Vault, etc.

The AddIdentityServer method accepts a lambda expression to configure various options in your IdentityServer, including the LicenseKey. Set the value of this property to the content of the license key file.

Program.cs
builder.Services.AddIdentityServer(options =>
{
// the content of the license key file
options.LicenseKey = "eyJhbG...";
});

The AddBff method accepts a lambda expression to configure various options in your BFF host, including the LicenseKey. Set the value of this property to the content of the license key file.

Program.cs
builder.Services.AddBff(options =>
{
// the content of the license key file
options.LicenseKey = "eyJhbG...";
});

When deploying your application to Microsoft Azure, you can make use of Azure Key Vault to load the Duende license key at startup.

Similarly to setting the license key programmatically, you can use the AddIdentityServer or AddBff method, and use the overload that accepts a lambda expression to configure the LicenseKey property.

Program.cs
var keyVaultUrl = new Uri("https://<YourKeyVaultName>.vault.azure.net/");
var secretClient = new Azure.Security.KeyVault.Secrets.SecretClient(
keyVaultUrl,
new Azure.Identity.DefaultAzureCredential()
);
KeyVaultSecret licenseKeySecret = secretClient.GetSecret("<YourSecretName>");
var licenseKey = licenseKeySecret.Value;
// Inject the secret (license key) into the IdentityServer configuration
builder.Services.AddIdentityServer(options =>
{
options.LicenseKey = licenseKey;
});

If you are using Azure App Configuration, you can use a similar approach to load the license key into your application host.