none
Where to cache license validation on the client RRS feed

  • Question

  • We have an azure box housing our application.  Querying the server each time the user accesses the app will increases our expenses significantly in the long-run.

    Does anyone have any suggestions as to where the validation response could be stored on the clients PC or in his Outlook account?

    Thank you,

    --Ephraim


    -- Ephraim

    Tuesday, June 20, 2017 4:54 PM

Answers

  • Hi EphraimF,

    if you visit the same link and see the figure below.

    you can see that when user will download the Add in, the token file also get downloaded with it.

    which looks like below.

    <r v="1"><t aid="WA103403563" pid="fdd5f373-c524-4123-b716-b583c532abe1" cid="8491CA951DB109E0" ts="1" et="Paid" ad="2012-09-05T09:07:40Z" sd="2012-09-05" te="2012-10-06T07:20:45Z" /><d>jFHyWsqnl4JFuFHBwX01ZiLGezvk7bt4JHk35wu7wtg=</d></r>

    then when ever user use the addin you need to decode the token and check the et parameter.

    for testing you can put the token file with app manifest in the same folder.

    detailed steps are mentioned the first link of the previous reply.

    so the details are stored in the token file.

    but it will check every time. so if you think that you will try to check one time and next time you can skip this step and try to check the last response from the local resource then it will not. there is no any feature or functionality provided by the Office JS Api.

    Regards

    Deepak


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Thursday, June 22, 2017 8:09 AM
    Moderator

All replies

  • Hi EphraimF,

    from the description of the thread, its looks like your project type is related with Azure.

    are you using Outlook interop in your project?

    please try to inform us about your project type and about your project code environment.

    we will try to find a suitable forum and try to redirect you to correct forum.

    Thanks for your understanding.

    Regards

    Deepak


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, June 21, 2017 2:33 AM
    Moderator
  • Thanks for the quick response.

    The project is an Outlook add in written in JavaScript and HTML on the client side, and it uses C# on the server side to query the Microsoft License Validation service.

    My server happens to be running on an Azure box.

    I would like to minimize use of the Azure box (it costs money), and query the Validation server and cache the response on either the client's PC or Exchange server.

    I'm looking for suggestions on how to do this.

    Thanks again,

    --Ephraim


    -- Ephraim

    Wednesday, June 21, 2017 3:43 AM
  • Hi EphraimF,

    if you are talking about checking the license for your addin then please try to refer link below will give you the detail description and code example to check the license.

    1. Creating and verifying licensing in a paid app for Office
    2. How licenses work for Office and SharePoint Add-ins
    3. Office and SharePoint Add-in license XML schema structure
    4. Add license checks to Office and SharePoint Add-ins
    5. License your Office and SharePoint Add-ins

    Regards

    Deepak


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, June 21, 2017 6:33 AM
    Moderator
  • Hi Deepak.

    I read the material you supplied, and I'd still like some direction on WHERE I can cache the reply from the License Validation Server so that I don't need to access the validation server each time the page is loaded.

    Thank you, Ephraim


    -- Ephraim

    Wednesday, June 21, 2017 5:14 PM
  • Hi EphraimF,

    if you visit the same link and see the figure below.

    you can see that when user will download the Add in, the token file also get downloaded with it.

    which looks like below.

    <r v="1"><t aid="WA103403563" pid="fdd5f373-c524-4123-b716-b583c532abe1" cid="8491CA951DB109E0" ts="1" et="Paid" ad="2012-09-05T09:07:40Z" sd="2012-09-05" te="2012-10-06T07:20:45Z" /><d>jFHyWsqnl4JFuFHBwX01ZiLGezvk7bt4JHk35wu7wtg=</d></r>

    then when ever user use the addin you need to decode the token and check the et parameter.

    for testing you can put the token file with app manifest in the same folder.

    detailed steps are mentioned the first link of the previous reply.

    so the details are stored in the token file.

    but it will check every time. so if you think that you will try to check one time and next time you can skip this step and try to check the last response from the local resource then it will not. there is no any feature or functionality provided by the Office JS Api.

    Regards

    Deepak


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Thursday, June 22, 2017 8:09 AM
    Moderator