HISE Logo Forum
    • Categories
    • Register
    • Login

    Woocommerce linked licensing system for your plugins

    Scheduled Pinned Locked Moved General Questions
    91 Posts 14 Posters 9.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Matt_SFM
      Matt_SF
      last edited by Matt_SF

      @d-healey @orange so, .substring works but .replace doesn't...

      29a554b7-59f9-4b77-a6dc-f81b80795ee0-image.png
      (no matter if I write .replace("", "") or .replace('""', "") the result is the same).

      By using this, I mananged to get it to work :

      const info = desktop.getChildFile("info.txt");
      
      // Function getTheToken
      info.writeObject(response);
      
      // Function verifyTheToken
      local text = info.loadAsObject();
      local token = text.token;
      
      Server.setHttpHeader("Authorization: Bearer " + token);
      

      Is there a preferred method between .loadAsObject() and .loadAsString for these kind of things or is there no difference ?

      d.healeyD orangeO 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @Matt_SF
        last edited by

        @matt_sf I use an encrypted object.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 1
        • orangeO
          orange @Matt_SF
          last edited by orange

          @matt_sf said in Woocommerce linked licensing system for your plugins:

          Is there a preferred method between .loadAsObject() and .loadAsString for these kind of things or is there no difference ?

          I think objects would be better choice. Writing and Rreading encrypted objects is more secure way for that purpose. You can encrypt the file with a combination of complex pin and machine ID. Also you can change the encrypted file extension from .json to .dat or whatever you like.

          develop Branch / XCode 13.1
          macOS Monterey / M1 Max

          Matt_SFM 1 Reply Last reply Reply Quote 1
          • Matt_SFM
            Matt_SF @orange
            last edited by

            Noted ! Thank you @d-healey, @orange and @ustk for your help, I really appreciate :folded_hands:
            I'll probably be back soon with another issue :)

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User
              last edited by

              @orange I am trying to make a similar thing like you did for license activation but as I see it's very very complicated to make the same licensing application in HISE. Much more harder than I think!

              As I also see you do analog modeling plugins too. It's very interesting that you do very very hard to implemet stuff directly in HISE :D For me, unbelievable and extraordinary, congrats dude!

              1 Reply Last reply Reply Quote 0
              • Matt_SFM
                Matt_SF
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • Matt_SFM
                  Matt_SF
                  last edited by

                  Hey, it's me again ! I have a question regarding security :

                  I'm into the process of "converting" my Kontakt instruments into VSTs and I'm using JWT Auth + the License manager plugin, but I just set up the license system so the customers who already purchased my Kontakt instruments don't have a serial number yet.

                  In order to offer the smoothest user experience, my first tought of managing this was to implement an 'Auth + Register' system in the VST plugin which does this (roughly) :

                  User enter Username & Password then use JWT to authenticate the user then :

                  if (User owns the product)
                  {
                      if (User already have a serial)
                      {
                          ServerCall.use License Manager endpoint to check the serial and authorize the plugin;
                      }
                      else if (User dont have a serial in his account)
                      {
                          plugin.function(generateSerial);
                  
                          ServerCall.use License Manager endpoint to create a serial number into User account and authorize the plugin;
                      }
                  }
                  else
                  {
                      Dont unlock the plugin
                  }
                  

                  But I'm concerned by automatically creating a serial with the License manager endpoint. Wouldn't it be a major security breach to let a plugin use this endpoint ? Technically it writes something in my DB....

                  d.healeyD orangeO 2 Replies Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @Matt_SF
                    last edited by

                    @matt_sf If it's an authorised request via jwt it shouldn't be anymore of a risk than doing the same thing through your website

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public HISE tutorials

                    1 Reply Last reply Reply Quote 1
                    • orangeO
                      orange @Matt_SF
                      last edited by orange

                      @matt_sf said in Woocommerce linked licensing system for your plugins:

                      But I'm concerned by automatically creating a serial with the License manager endpoint. Wouldn't it be a major security breach to let a plugin use this endpoint? Technically it writes something in my DB....

                      I think you shouldn't use creating serial number endpoint, that could be a security hole like you said.

                      What you can do is: upload/create "unregistered" serials into your Woocommerce License Manager admin area. While uploading the serials, you need to mark them as "unregistered".

                      Then the user needs to enter the exact serial number to register it. This way would be more secure because if the entered serial is not in your "unregistered serials list", then the license activation can't be done. You can also use this system for the resellers too. You can give unregistered serials to the resellers to sell them, then the users will need to register the code into their account.

                      But giving a right to create a serial number is a different story and this might be a security issue.

                      develop Branch / XCode 13.1
                      macOS Monterey / M1 Max

                      Matt_SFM 2 Replies Last reply Reply Quote 2
                      • Matt_SFM
                        Matt_SF @orange
                        last edited by

                        @orange @d-healey thanks for your answers. My problem was to at least assign thoses licenses - if not send them - to existing customers (there are about 300-400 of them so doing it manually was not an option 😅).

                        But I just thought that it shouldn't be a problem to upload a bunch of unregistered licences and, instead of creating one via the plugin, just get one and activate it (I should have thought of that).

                        Thank you ! 🙏

                        1 Reply Last reply Reply Quote 1
                        • Matt_SFM
                          Matt_SF @orange
                          last edited by

                          @orange too bad, it seems there's no way to 'GET' an existing unregistered license which then can be activated on the fly with the License Manager's API. In order for this to work, the user must have received his license beforehand.
                          I'll have to find another way... Thanks anyway !

                          1 Reply Last reply Reply Quote 0
                          • C
                            clumsybear
                            last edited by

                            Nice work @orange & @ustk!
                            Do you have any idea if it is possible to implement this to plugins made with juce, without hise? is there any juce api for this instead the hise server api?

                            d.healeyD 1 Reply Last reply Reply Quote 0
                            • d.healeyD
                              d.healey @clumsybear
                              last edited by

                              @clumsybear You'd have to use the JUCE network class probably: https://docs.juce.com/master/group__juce__core-network.html

                              Libre Wave - Freedom respecting instruments and effects
                              My Patreon - HISE tutorials
                              YouTube Channel - Public HISE tutorials

                              1 Reply Last reply Reply Quote 1
                              • C
                                clumsybear @orange
                                last edited by

                                @orange said in Woocommerce linked licensing system for your plugins:

                                • For page design, definitely go with Gutenberg (with Kadence Blocks). I think the page builders (like Divi, Elementor...etc.) will die soon, because Gutenberg (which is designed by Wordpress) is much more faster, getting better day by day, and it is the future of Wordpress.

                                @orange so after a few years using Gutenberg, do you still think it's the future of page builders? I read a lot of reviews reporting problems with it and people switching back to Elementor. What's your experience?

                                d.healeyD orangeO Matt_SFM 3 Replies Last reply Reply Quote 0
                                • d.healeyD
                                  d.healey @clumsybear
                                  last edited by

                                  @clumsybear I use Gutenberg but not the woo blocks because they're quite limited

                                  Libre Wave - Freedom respecting instruments and effects
                                  My Patreon - HISE tutorials
                                  YouTube Channel - Public HISE tutorials

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    clumsybear
                                    last edited by

                                    nice, what are your thoughts on it? why did you decide against other page builders? @d-healey

                                    d.healeyD 1 Reply Last reply Reply Quote 0
                                    • d.healeyD
                                      d.healey @clumsybear
                                      last edited by

                                      @clumsybear I try to follow the KISS principle. My website is totally functional without needing an additional dependency of a page builder, and it looks decent and is simple for the user to navigate.

                                      Libre Wave - Freedom respecting instruments and effects
                                      My Patreon - HISE tutorials
                                      YouTube Channel - Public HISE tutorials

                                      1 Reply Last reply Reply Quote 1
                                      • orangeO
                                        orange @clumsybear
                                        last edited by orange

                                        @clumsybear said in Woocommerce linked licensing system for your plugins:

                                        I read a lot of reviews reporting problems with it and people switching back to Elementor. What's your experience?

                                        What kind of issues?

                                        Gutenberg works great here. Page loading speed, Google ranking is pretty high also.

                                        There are lots of features are being added continuously to Gutenberg. People preferred other page builders for design speed before. But now, Gutenberg is easier/faster to use now. I think there are no need for another third party page builders anymore (at least for me).

                                        Also Wordpress & Woocommerce integrate to Gutenberg much better than other 3rd party builders. But this integration quality also depends on the theme you use. So choose a good and fast theme first.

                                        develop Branch / XCode 13.1
                                        macOS Monterey / M1 Max

                                        C 1 Reply Last reply Reply Quote 0
                                        • Matt_SFM
                                          Matt_SF @clumsybear
                                          last edited by

                                          @clumsybear I think I never could understand the workflow in Gutenberg. I come from elementor but got tired of the bloat and heaviness (even if it's pretty efficient in terms of design possibilities IMO).
                                          I'm trying the oxygen builder these days and it seems pretty nice...

                                          Dan KorneffD 1 Reply Last reply Reply Quote 0
                                          • C
                                            clumsybear @orange
                                            last edited by clumsybear

                                            @orange as far as I understand Gutenberg development is breaking compatibility with almost every other update, so that you have to rework your pages made with the block builder. Also there seem to be lots of missing features compared to other builders.

                                            I'm asking because I have no experience with Gutenberg, only with Elementor and I would like to switch from Elementor to a simpler and less bloated solution.

                                            So you're saying the Kadence Theme with Gutenberg and WP 6.2 is a solid solution and you did not encounter any problems?

                                            Thanks for replying btw @orange

                                            @Matt_SF thanks for the suggestion, I will look into oxygen builder, never heard of it. Although, my ideal solution would be without 3rd party builders, if I can manage it :)

                                            I totally understand getting tired of the bloat and heaviness, I have the same experience right now

                                            orangeO 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            37

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            102.0k

                                            Posts