- Only Client Secret:
using WebAPIClientManager;
...
//64 is length of random input.
string clientSecret = Generator.GetNewClientSecret(64);
...
- Both Client Id and Client Secret:
using WebAPIClientManager;
...
//64 is length of random input.
var idSecretPair = Generator.GetNewClientIdAndClientSecret(64);
Guid clientId = idSecretPair.ClientId;
string clientSecret = idSecretPair.ClientSecret;
...