How to deal with the license?

Hi,

My company just adopted the Syncfusion PDF library in our C# project.

I am tasked with integrating it and making it work in production. One of the "new" things we have to do it to inject the new license (key), at run-time.

I am a bit confused how to handle this for this reason - we are supposed to "protect" the value from leaking, but if want the library to work in the lower environments - Dev, Test, we will have to use it there as well, this exposing it during debugging.

Not sure if having multiple licensed would work here.

So, how it is usually done?

Regards,

Simon


1 Reply

PS Prashanth Sundhar Syncfusion Team October 11, 2024 08:33 AM UTC

Hi Simon,

Our license key is just a string that needs to be registered before initializing any Syncfusion controls in your application.
We don’t have any option to secure the registered license key. We have implemented this licensing (key) validation system to avoid using our products inadvertently.

So, you can directly use license key in your code for your internal development works\publishing your application to production.

You can get the Syncfusion license keys by storing them in a config, json or an app settings file or from an environment variable and use them in their project.

Additionally, you have the option to store the license key using Azure Key Vault. Please refer to the following documentation to learn more about this.

Licensing FAQ – How to securely store and use Syncfusion License Keys in Azure Key Vault | Syncfusion

But in above cases also, license keys will be exposed in the front end. It’s fine to use like that.

If you didn’t want this, you can download and use the licensed version of NuGet packages and scripts to avoid using the license key.

Syncfusion provides licensed installer. When you download the licensed installer from your Syncfusion account by logged in using your credential, the
license key generation and registration is not required for your projects.

Refer to this UG documentation link for downloading licensed installer.

https://help.syncfusion.com/common/essential-studio/installation/web-installer/how-to-download

Installation stepshttps://help.syncfusion.com/common/essential-studio/installation/web-installer/how-to-install

Regards,
Prashanth S


Loader.
Up arrow icon