Custom credential provider
Override the SDK's default credential source to supply API keys from environment variables, a secrets vault, or any runtime-resolved credential store.
Prerequisites
How credentials flow through the SDK
public interface ICredentialProvider
{
bool HasValidCredentials { get; }
string GetApiKey();
string GetServerUrl();
void Refresh();
}Provide custom credentials
ConvaiBootstrapConfigSnapshot parameters
Parameter
Type
Default
Description
Usage examples
Example 1: Environment variable with local fallback
Example 2: Secrets vault fetch before startup
Example 3: Per-tenant credentials from a config service
Troubleshooting
Symptom
Likely cause
Fix
Next steps
Custom identity providerCustom persistence providerLast updated
Was this helpful?