Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Labs64 NetLicensing / Auth0 Integration

Labs64 NetLicensing is a first-class solution in the Licensing as a Service (LaaS) sector. Based on open standards, it provides a cost effective, integrated and scalable platform for software vendors and developers who want to concentrate on their product’s core functionality instead of spending resources on developing an own license management software.

Rule: Enrich user profile with NetLicensing validation

This rule validates user entitlements using NetLicensing license management services. User e-mail (if available) is being used as a customer identifier.

The validation result is immediately available in the user_metadata property and returns data in the ID token.



  • Valid and active NetLicensing vendor profile; register here
  • Working Auth0 configuration (incl. test application)

Configure NetLicensing product

Screenshot 2021-03-14 at 21 45 01

Configure product module

Screenshot 2021-03-14 at 21 45 21

Create Auth0 rule

Use rule-netlicensing-validate.js as rule content.

Screenshot 2021-03-14 at 21 45 53

Create NetLicensing API Key

Note: recommended API Key role ROLE_APIKEY_LICENSEE

Screenshot 2021-03-14 at 21 47 04

Required configuration

  • NETLICENSING_API_KEY - NetLicensing API Key (step 4)
  • NETLICENSING_PRODUCT_NUMBER - product number (step 1)
  • NETLICENSING_PRODUCT_MODULE_NUMBER - product module number (step 2)

Screenshot 2021-03-14 at 21 46 07

Rule flow

Created and deployed rule will be executed after user login.

Screenshot 2021-03-14 at 21 49 29

Sample user info

Enriched user profile can be retrieved using Auth0 API; see /userinfo endpoint. Userinfo response format specified by OpenID Connect specification.

    "email": "user@local.local",
    "": {
        "id": null,
        "infos": {
            "info": []
        "items": {
            "hasnext": null,
            "item": [
                    "list": [],
                    "property": [
                            "name": "productModuleNumber",
                            "value": "MAUTH0"
                            "name": "valid",
                            "value": "true"
                            "name": "expires",
                            "value": "2021-03-21T20:52:45.867Z"
                            "name": "productModuleName",
                            "value": "Subscription module"
                            "name": "licensingModel",
                            "value": "Subscription"
                    "type": "ProductModuleValidation"
            "itemsnumber": null,
            "pagenumber": null,
            "totalitems": null,
            "totalpages": null
        "signature": null,
        "ttl": "2021-03-14T21:02:45.867Z"
    "name": "User",
    "nickname": "username",
    "picture": "",
    "sub": "github|1361258",
    "updated_at": "2021-03-14T20:52:45.984Z"

Bugs and Feedback

For bugs, questions and discussions please use the GitHub Issues.