Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nick 13 posts 97 karma points c-trib
    Feb 13, 2019 @ 15:24
    Nick
    0

    Creating licenses

    Hi,

    I asked the devs of umbraco for an explenation about how to create and validate licenses for packages created by the company i work for.

    The Umbraco devs redirected me to you and two other licensed umbraco package devs.

    Now is my question if i can get an explenation on how to do licensing for packages and if you are willing to explain it.

    regards,

    Nick

  • Yakov Lebski 591 posts 2346 karma points
    Feb 13, 2019 @ 16:10
    Yakov Lebski
    0

    I see that packages use Umbraco.Licensing.dll or PackageGarden.Licensing.dll I can't find documentation or source of it

  • Nick 13 posts 97 karma points c-trib
    Feb 14, 2019 @ 07:38
    Nick
    0

    Hi,

    I know that the licensing dll is used but i was hoping the devs had some documentation.

    regards,

    Nick

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Feb 18, 2019 @ 15:54
    Markus Johansson
    100

    Hi!

    There are plenty of ways to do this and there are commercial solutions as well.

    Have a look here: https://stackoverflow.com/questions/599837/how-to-generate-and-validate-a-software-license-key

    Or here: https://www.codeproject.com/Articles/996001/A-Ready-To-Use-Software-Licensing-Solution-in-Csha

    As far as the dlls that you are asking about I can explain them here:

    Umbraco.Licensing.dll

    This is a DLL shipped by Umbraco HQ, they also use this for Forms and their own paid packages. Some years ago they started a "app store" like initiative called "Umbraco Deli" where they would handle the licensing and they take 30% (i think) of the sales of the packages.

    This was closed and I the case of newsletter studio it's only included for backwards comparability for clients that still have this old license model with license from Umbraco Deli.

    PackageGarden.Licensing.dll

    This is a file for the "new" licence manager that we use, it's a initiative that was started by Richard Soeteman (SEO Checker, CMSImport) and when HQ closed the Deli he shared his implementation with me and some other Umbraco Package developers. We are still using this solution but the license manager is running on a old Umbraco 6-website which is not 100% great - but it's a lot of moving parts to upgrading this.

    I know that Herman who made uBooking ( https://our.umbraco.com/packages/website-utilities/ubooking/) used some open source solution with a public secret and a public shared key + license key to create a license solution.

    Speaking from my experience I would say that it's best to look for a solution that you have full control over on your side and that you can change/ship how you like.

    The problem with these shared soltuions is that if HQ updated the UmbracoLicensing.dll with a breaking change we also need to update and some clients that have old versions of Newsletter Studio and then installs Forms might experience problems.

    Hope this helps you on your road to success!

  • Nick 13 posts 97 karma points c-trib
    Feb 20, 2019 @ 08:34
    Nick
    0

    Hi!

    Thank you very much. Thanks to you i managed to find someone who was able to help me with the licensing and explain it. This was just what i needed!

    Regards, Nick

  • Nick 13 posts 97 karma points c-trib
    Mar 08, 2019 @ 08:35
    Nick
    0

    I found another way that might be useful for people and that you, if you get this question again, can include in your answer: https://github.com/CoreCompat/Portable.Licensing/tree/features/dotnetcore-v2

    This is an open source licensing solution. It is also very flexible and is available on NuGet. I do recommend however that the CoreCompat version is used since that is going to be kept up to date with new .NET versions.

Please Sign in or register to post replies

Write your reply to:

Draft