Get Free Trial

flexmonster license key from azure key vault

Answered
Nil asked on November 19, 2021

Hi  Team,
 
We want to load our staging flexmonster license key from azure key vault for angular app, can we have inbuild integration for the same ? or any approach do want to suggest here 

1 answer

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster 7 days ago

Hello, Nil,
 
Thank you for contacting us.
 
Kindly note that Flexmonster does not provide integration with Azure Key Vault. License key is just a string value and can be set using one of the following approaches:

  • You can place the needed license key on the server and set it using URL:
<fm-pivot #pivot

[licenseFilePath]="'/api/getLicenseKey'"

[toolbar]="true"

[width]="'100%'"

[height]="'100%'">

</fm-pivot>
  • Alternatively, you can set a license key through the function that will return the necessary string. First, in `app.component.ts`, define a function for getting the needed license key, for example:
    getLicenseKey(): string {
    var licenseKeys = {
    "flexmonster.com": "XXX",
    "example.com": "ZZZ",
    "localhost": "Z7RG-XBHG4D-0H1017-46003U"
    };
    var hostname = window.location.hostname;
    return licenseKeys[hostname];
    }

    Then, in app.component.html, assign the function (in our case, getLicenseKey()) to the licenseKey property:

    <fm-pivot 
    #pivot
    [report]="report"
    [licenseKey]="getLicenseKey()">
    </fm-pivot>

We hope it helps. You are welcome to write to us in case further questions arise.
 
Kind regards,
Nadia

Please login or Register to Submit Answer