Copied to clipboard

Flag this post as spam?

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


  • Nick Kronenberg 7 posts 87 karma points c-trib
    Feb 13, 2019 @ 15:24
    Nick Kronenberg
    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 231 posts 929 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 Kronenberg 7 posts 87 karma points c-trib
    Feb 14, 2019 @ 07:38
    Nick Kronenberg
    0

    Hi,

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

    regards,

    Nick

  • Markus Johansson 1603 posts 4506 karma points
    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 Kronenberg 7 posts 87 karma points c-trib
    Feb 20, 2019 @ 08:34
    Nick Kronenberg
    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 Kronenberg 7 posts 87 karma points c-trib
    Mar 08, 2019 @ 08:35
    Nick Kronenberg
    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