Skip to content

NetLicensing Connection Error

R.Brown edited this page Oct 26, 2017 · 5 revisions

Error

NetLicensing\RestException
Missing parameter "username"
  or
Missing parameter "password"
  or
Missing parameter "apiKey"
  or
Unknown security mode
  or
Unsupported response status code 401: Unauthorized

Issue

Membership cannot be validated or membership page cannot be accessed. Request to the NetLicensing is resulting in 401 Unauthorized Error

NetLicensing connection error

Solution

Management of the membership plans in Laravel Boilerplate is done using Labs64 NetLicensing.

Valid configuration of NetLicensing connection attributes is necessary in that case.

Please make sure, that the latest version of .env.example is copied as .env and following attributes are filled with the correct values:

# Labs64 NetLicensing
LABS64_NETLICENSING_USERNAME=demo
LABS64_NETLICENSING_PASSWORD=demo
# obtained via https://go.netlicensing.io/console/v2/content/vendor/apiaccess.xhtml
LABS64_NETLICENSING_APIKEY=15542083-93d6-46d8-9955-d74d50eb99a1
LABS64_NETLICENSING_SECURITY_MODE=APIKEY

# Demo product
LABS64_NETLICENSING_PRODUCT_NUMBER=LB-DEMO
# Demo product module
LABS64_NETLICENSING_PRODUCT_MODULE_NUMBER=LB-SUBSCRIPTION-PLAN

How to get NetLicensing API Key

Correct value for the LABS64_NETLICENSING_APIKEY can be obtained from NetLicensing API Access page.

How to get NetLicensing API Key