sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

Add a `sublime.license_info()` endpoint.

Open UltraInstinct05 opened this issue 3 years ago • 2 comments

Problem description

Currently, certain information about licenses is not available to the users. Some things I am looking at it

  1. License purchase date
  2. License expiration date (License purchase date + 3 years)
  3. Is the current build supported by the license.

There can be more, but I am not sure what information is encrypted along with the license. This can atleast give the users some information about their license if they happen to loose emails or just generic license information which is good to know

Preferred solution

Add a sublime.license_info() API that returns information about the license that is deemed safe i.e. malicious packages cannot misuse it. I am not sure if even 1, 2, 3 is deemed safe to expose, so maybe this issue is a good place to discuss it. If it's deemed, such an API endpoint can potentially be misused, happy to close it as well 🙂

Alternatives

None

Additional Information

None

UltraInstinct05 avatar Jun 15 '22 13:06 UltraInstinct05

Given that the dev build 4135 adds purchased date information in the About popup, I'd leave this to the devs to see if they still find this a usable addition

UltraInstinct05 avatar Sep 16 '22 03:09 UltraInstinct05

I personally am more interested in when the license will be expired or whether ST is in a licensed status.

Such as an API providing:

  • purchased date
  • expired date
  • license status: upgrade required / valid / no license
  • the following may be too detailed but welcomed
    • license user name
    • license seats

jfcherng avatar Sep 16 '22 03:09 jfcherng