Trouble with JUCE tutorial about unlocking plugins through online registration

So I have been trying to follow the JUCE tutorial: Unlock your plugins through online registration and did achieve a registration through a local host as the tutorial describes.

My problem is that after I’ve finished the “Registration Complete!” window comes up and I press “OK”, it goes back to the window “Please provide your email and password.” again. And if I press cancel it goes back to the first window with only the “Unlock” button available to press and not the “Super Secret Feature” one which is the end goal.

After some debugging I discovered that in the function:

void timerCallback() override
{
    if(! isUnlocked && marketplaceStatus.isUnlocked())
    {
        isUnlocked = true;
        unlockApp();
    }
}

the

marketplaceStatus.isUnlocked()

never turns “true” (a variant, not a bool). Anyone who knows what the solution is that it never does that? I would be very grateful for any suggestions!

Next problem is to actually implement all this to my plugin and some sort of website, but I guess that is a different topic :slight_smile:

You have to make sure that you are using the unlocker, and that you compile the unlocker with the correct private RSA key that matches your PublicKey in the TutorialMarketPlace. When thats done properly you have to make sure your script on the server side runs the unlocker app with the arguments [appName, userEmail, username, machineNumbers, rsa.private]. That will generate the XML response you need to send back to the TutorialMarketplaceStatus (which is essentially a part of the OnlineUnlockStatus class). When it receives that message back it does some OnlineUnlockStatus class magic and verifies that the public key decrypts the encrypted message successfully, unlocking the marketplaceStatus

1 Like

How did you end up implementing the backend?