We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

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 

3 answers

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster November 22, 2021

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

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster November 29, 2021

Hello, Nil,
 
Hope you are doing well.
 
Just checking in to ask if you had a chance to try the suggested approaches.
 
We will be glad to hear your feedback.
 
Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster December 6, 2021

Hello, Nil,
 
Hope you are doing well.
 
Could you please confirm if the suggested approaches work well for you?
 
Looking forward to hearing from you.
 
Kind regards,
Nadia

Please login or Register to Submit Answer