-
Notifications
You must be signed in to change notification settings - Fork 413
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
License checking and Bitbucket #199
Comments
The post about securing updates only applies to the case where you're running your own update server. That approach won't work with BitBucket since you can't run your custom server code on bitbucket.org. I don't have a ready solution for combining license restrictions with BitBucket access. I've never done something like that. Providing API credentials to clients who have a valid license could work. Another option would be to proxy update requests through your own server: configure the update checker to use your server, make the custom update server load updates from BitBucket (e.g. by downloading the latest ZIP to |
Hi Jānis! |
I'm closing this issue because it has been inactive for more than a year. If you're still interested in license management features, please comment on #222 or open a new issue. |
Hi Jānis,
I am attempting to integrate
plugin-update-checker
,wp-update-server
, and Software License Manager.I have the license part figured out and working. The issue is with the update process itself.
I am using Bitbucket to store the releases of my plugin, and have a consumer properly set up. I have followed your post on how to secure plugin updates but it doesn't really say much about its compatibility with APIs.
Here are my issues (refer to the full code below):
CustomServer::initRequest
is never calledCustomServer::filterMetadata
is never calledCustomServer::checkAuthorization
is never calledCustomServer::verifyLicenseExists
is never calledCustomServer::isLicenseValid
is never calledmy_plugin_filter_update_checks
is never called... and the plugin gets updated even without license (valid or not).
Is it because of
$update_checker
is using Bitbucket?I am not sure to understand - should the repo and consumer info be on the server side instead, and transmitted to the client after the license validity has been confirmed? If yes, how?
The code below is for reference - it is a work in progress, but because the functions of the custom server are never called, I can't even test the server side .
Server side
Plugin file:
Plugin main class
class-wp-plugin-update-server.php
:Plugin custom server class
custom-server.php
:Client side
Code added to my plugin in an included
updater.php
:The text was updated successfully, but these errors were encountered: