Edit appsettings.json file for IDE based Testing

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.

 "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.

This is the example code provided (unedited):

{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "AllowedHosts": "*",
  "Authentication": "",
  "Users": [
    {
      "Email": "user1@example.com",
      "Password": "password",
      "ActivationCode": "activation-code"
    },
    {
      "Email": "user2@example.com",
      "Password": "password",
      "ActivationCode": "activation-code"
    }
  ],
  "Zentitle": {
    "ClientId": "",
    "ClientSecret": "",
    "AuthServiceUrl": "",
    "TenantId": "",
    "ZentitleUrl": "",
    "Entitlement": {
      "ProductId": ""
    }
  }
}

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.

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