Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement License Activation Functionality #6

Merged
merged 5 commits into from
Oct 16, 2024

Conversation

arunshenoy99
Copy link
Member

@arunshenoy99 arunshenoy99 commented Oct 14, 2024

Proposed changes

  • A new option name stores the license data map, including downloadUrl, basename, provider, activationKeyStorageName, and storageMethod. This data is encrypted and serves as the module’s source of truth.
  • Functions store_license_storage_map and retrieve_license_storage_map handle encrypted storage/retrieval.
  • Provision API returns license_id, download_url, storage_map, and basename for premium plugins.
  • basename is used to track plugin activation, storing activation_key. Ref: https://github.com/newfold-labs/laravel-hiive/pull/461/files
  • License validity is checked before provisioning/activating a new license, ensuring only invalid licenses are re-provisioned. Also, it does not call Hiive again to fetch the download URL rather uses the option mentuoned in the first point to find it.

Type of Change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Video

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@arunshenoy99 arunshenoy99 merged commit 807fb96 into solutions Oct 16, 2024
2 checks passed
@arunshenoy99 arunshenoy99 deleted the enhance/activate-premium-plugin branch October 16, 2024 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants