Collecting credentials for integration
Last updated
Last updated
Zentitle2
Service terms© Copyright - Nalpeiron, all rights reserved Website use subject to Terms and Conditions. See our Privacy Policy Use of Zentitle is subject to our Service Terms and Conditions
In order to use the code with each of your "products," you will need to wire up the app, the client, and the APIs using data collected from the dashboard provided with Zentitle2.
On-premise and SDK-based implementations use the Licensing API. The Licensing API doesn't use OAuth2 to authenticate requests. Instead, authentication is based on tenantId, productId, and entitlement Activation Code.
Then, you need "activation codes" for testing based on the product entitlements you will create.
Note there are two options on the API Credentials page, so ensure you pick the correct API details.
Tenant Id (API) - for authentication
zentitleApiUrl - API URL
Product Id - for identifying which product to license
Activation codes - to test (per the rights in the entitlement)
Found under the Licensing API Details section, the TenantId, OAuth URL, and API URLs can be easily copied using the "copy" button on the left.
The parameters are located under the "Administration" > "API Credentials" on the top menu.
Example in code: .WithTenant("t_KRwhRp1yl0_9gsZjE5Yjqq") for SDK
The Product Id is located under the "Product Catalog" > "Products" > "YourProduct" on the left menu.
On the product page, in the details tab, you need the key "ID".
Example in code: .WithProduct("prod_GROAP541F0qw2XzDQSOyrg")
Remember that each "product" has its own unique ID. You will need to use different IDs for every product you release.
Activation codes
The Activation codes are located under the "Entitlements" > "Activation codes" on the left menu.
This example assumes you have already created entitlements and added activation codes.
In the API docs, we also show how to setup Postman so you can test the API:
https://api.nalpeiron.io/docs/#section/Postman-Configuration
Now you should have all the data required to set up the SDK and test it.
SaaS-type products use the Management API to manage entitlements.
SaaS-type products use the Management API to manage entitlements.
Zentitle2 Management API uses OAuth2 over HTTPS to manage authentication and authorization.
https://api.nalpeiron.io/docs/#section/Authentication
You will also need "activation codes" for testing based on the product entitlements you will create.
Tenant Id (API) - for authentication
oauth_url - OAuth URL
zentitleApiUrl - API URL
ProductID - unique code for the product being tested
Generate these:
client Id - your ID
clientSecret - secret key
Activation codes - to test (per the rights in the entitlement)
Most of these are in the interface, but you must generate the API client and secret in API Credentials.
The TenantId is located under the "Administration" > "API Credentials" on the left menu.
Found under the Management API Details section, the TenantId, OAuth URL, and API URLs can be easily copied using the "copy" button on the left.
API requires one more header to be set with Id of your Zentitle2 tenant, for example:
Clicking save generates the Client Secret key under the ID.
The "copy" button on the right can easily copy the secret key.
e.g. Twfx2Q5mH0izUXshrsTe3z3PIwkje22y
Before closing, copy and save the Client Secret for the integration process.
Once you have saved the API client, you can also download a package containing all the data you need for Postman.
The Activation codes are located under the "Entitlements" > "Activation codes" tab on the left menu.
This example assumes you have already created entitlements and added activation codes.
Getting your product id code is easy.
Simply log in and go to the products page.
Find the test product, click on the product name, and review the "details" tab.
Copy the ID line.
Paste that data into the correct line in the config app.
In the API docs we also show how to setup Postman so you can test the API:
https://api.nalpeiron.io/docs/#section/Postman-Configuration
You should have all the data required to integrate and test your app.
First, click on the "Products" link in the left menu,
Then, choose the product you have added you wish to integrate.
Click the product name.
The Product ID can be easily copied using the "copy" button on the left.
First, click the entitlement you will be testing.
Then, navigate to the activation codes tab on the entitlement page and find the activation codes in the "Activation Codes" section.
Test codes can be easily copied using the "copy" button on the left.
The client ID and client secret need to be generated in the same section by clicking the "add API client" button in the right-hand part of the "Management API Clients" section.
Next, name the ClientID and save the name for the integration process.
Click save.
You can view the key by clicking the "eye" icon or copying it.
First, click the entitlement you will be testing from the list.
Then, navigate to the activation codes tab on the entitlement page and find the activation codes in the "Activation Codes" section.
Test codes can be easily copied using the "copy" button on the left.