Clients are different from API clients. Use Clients in your
application to talk to Confidence to resolve flags or publish events. API
clients talk to Confidence’s management APIs, for tasks like
creating new flags or managing rules.
Client Credentials
After you have created a client, you also need to create a client secret that you use to authenticate requests to Confidence. Use the client secret when you initialize a Confidence client SDK, or when you make API requests to Confidence.Credential Rotation
For security purposes, you may need to rotate credentials periodically. The process involves creating a new credential, updating your application to use it, and then deleting the old credential.Environments
Environments let you separate flag behavior across different deployment stages like development, staging, and production. You can use the same client across multiple environments while configuring different credentials for each environment.How Environments Work
Environments work through two configuration points:- Client credentials: You can associate each credential with specific environments. When you link a credential to an environment, the credential identifies which environment the resolve request comes from.
- Flag rules: You can limit each rule to specific environments. Rules without environment restrictions apply to all environments.
Associate Credentials with Environments
When creating a client credential, you can specify which environments the credential applies to. A credential without environments only matches rules that also have no environments specified.| Rule Environments | Credential Environments | Rule Enabled |
|---|---|---|
| Empty | Empty | Yes |
| Empty | Has values | Yes |
| Has values | Empty | No |
| Has values | Has matching value | Yes |
| Has values | No matching value | No |
Go to the Clients page
Navigate to Clients in the Admin section.
Edit environments
Select Edit environments and enable the environments you want for this credential.

