Replies: 2 comments 4 replies
-
They do have a similar payload, sure, but in no way does the checkout action replace validation. Checking out a license does not validate the license. Validation is a separate action that performs a variety of assertions on the license and on its associations (machines, etc.) You should continue to validate your licenses whenever an internet connection is available. |
Beta Was this translation helpful? Give feedback.
-
You can do exactly the same thing with a cache, even without a second request:
What's the advantage of using a license file then?
Anyway, I think I'm beating a dead horse here. Perhaps we can say that license files and caching are similar and may even share some use cases. One is not better than the other for certain tasks. Would you agree? I ended up looking at license files because I'd like to give new users a string that contains the license key, the account ID, and the product name such that a license manager tool (which doesn't have the keygen verify key) can display information about the license, e.g.,
License files did look like what I was looking for at first sight, but it turned out no different than the caching I was already doing. In particular, when updating license files users don't have permission to fetch product info, so I'm back at square 1. The solution I'm thinking of now is something I'd rather have avoided, namely home-cooking something: Create a base64-encoded dictionary that contains all info that I want (license key, the account ID, the product name, perhaps something else), give and give that to the user. When validating, unroll the whole thing etc. |
Beta Was this translation helpful? Give feedback.
-
I looked at checking out license files as an alternative to what I do know, i.e., validating licenses and caching its results. From what I can see, the license file contains the exact output of a
validate-key
call -- it's also signed with the same key --, and additionally offers to add more data (include
) and optional encryption. Would it be fair to say the two methods are very similar?Beta Was this translation helpful? Give feedback.
All reactions