NetLicensing supports HTTP Basic authentication (via SSL) relying on the client's username and password to be added in the request.
In order to access secured REST services with HTTP Basic authentication, client applications have to set the HTTP Authorization header's value to: Basic <base64_encoded_username_password>. UTF-8 is the default decoding charset; therefore, the value must also have been encoded with the same charset.
API Key Identification
NetLicensing also supports API key identification to allow limited API access on vendor's behalf.
Leveraging API key improves security by:
- Reducing the need to store sensitive credentials on the client side
- Limiting the set of possible operations which can be done with a particular key
- Defining fine-grained access rules for critical services (for example: a token is only valid for one service invocation within the next 5 minutes)
Access to the REST services with an API key is the same as with Basic authentication, except that username is fixed to the value "
apiKey" (without quotation marks) and the actual API key should be provided in the password field. Use of the API key does not grant access to any account information, and is not used for authorization.
Each API key has associated role, that grants access to a specific API subset:
|Licensee (default)||ROLE_APIKEY_LICENSEE||Licensee validate and transfer, create shop token||Minimum access level, intended for keys embedded in client software for validation|
|Analytics||ROLE_APIKEY_ANALYTICS||"Licensee" + get / list for all entities||"Read-only" access (except validation), intended for automated access to entities from ERP, CRM, etc. for analytics|
|Operation||ROLE_APIKEY_OPERATION||"Analytics" + CRUD for licensee and license||Allows all operations with operational entities, but will not allow modification of product configuration entities|
|Maintenance||ROLE_APIKEY_MAINTENANCE||"Operation" + CRUD for product / product module / license template||Full product maintenance, does not allow modification to profile and any global configurations|
|Admin||ROLE_APIKEY_ADMIN||Full access, same as login/password (with few exceptions)||Can be used to grant (temporary) access, while keeping login/password undiscovered|
Check the services documentation to determine which security mechanisms and roles are allowed for particular NetLicensing service.