Editing the sample file and adding in the collected config data
Unzip the sample files and find the appsettings.json file, which contains the app configuration.
Edit this section with your codes. The dummy email and passwords don't matter for testing
"Users": [
{
"Email": "john@example.com",
"Password": "123456!",
"ActivationCode": ""
},
{
"Email": "mat@example.com",
"Password": "123456!",
"ActivationCode": ""
}
],
"Zentitle": {
"ClientId": "{Your api client ID}", (This is used to ID you as the tester, use any short text string)
"ClientSecret": "{Your API Client Secret}",
"AuthServiceUrl": "{Zentitle Auth Url}", this is the Oauth URL
"TenantId": "{Your Tenant ID}", (this is in your API page)
"ZentitleUrl": "{Zentitle API URL}", (https://XXXXXXXX.api.zentitle.io, this is in your API page)
"Entitlement": {
"ProductId": "{Your Product ID}"
}
}
//for example:
"Zentitle": {
"ClientId": "saas",
"ClientSecret": "AuPefCkk3HGBVeZqxmEmo35QWN9XrauP",
"AuthServiceUrl": "https://yourdetails.keycloak.zentitle.io/realms/elevate",
"TenantId": "t_KRwhRp1y80_9gsKjE5Yhsw",
"ZentitleUrl": "https://yourdetails.api.zentitle.io", API URL
"Entitlement": {
"ProductId": "prod_RQJnjIXZaA_PYPnJ0oe51A"
Copy the configuration file data (data collected from your Zentitle UI account) to replace the existing values in the library.
Edit the config file and save it with your new values.
Once you have edited the file, you are ready to run the app and do some simple testing showing the app's control via the Zentitle platform.
Open the file with an editor.
Add users and their corresponding activation codes in the user's section of the file. You must get these codes from your Zentitle page per the instructions above.
Now, set the following parameters in the Zentitle section. The data comes from your setup of the product and the API in previous steps.