Skip to content

Commit 6ffd5e6

Browse files
committed
- Small updates to comments.
- Added testing_credentials.json to .gitignore.
1 parent e4454fd commit 6ffd5e6

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ _deps/
4242

4343
# Docker artifacts
4444
*.tar
45+
46+
# Testing credentials file
47+
testing_credentials.json

src/scripts/dbpa_remote_testapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class DBPARemoteTestApp {
208208
// Initialize the agent
209209
float_agent_pooled->init(
210210
"demo_float_column", // column_name
211-
configuration_map, // configuration_map
211+
configuration_map, // configuration_map, needed so the pooled HTTP client can be instantiated internally by the agent.
212212
app_context, // app_context
213213
"demo_float_key_001", // column_key_id
214214
Type::FLOAT, // datatype

src/server/auth_utils.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ ClientCredentialStore::ClientCredentialStore(const std::string& jwt_secret_key)
3030
}
3131

3232
// Initialize credential store from a given map.
33+
// Expected format:
34+
// {
35+
// {"client_id", "api_key"},
36+
// {"another_client_id", "another_api_key"}
37+
// }
3338
void ClientCredentialStore::init(const std::map<std::string, std::string>& credentials) {
3439
credentials_.clear();
3540
credentials_ = credentials;
@@ -42,6 +47,11 @@ void ClientCredentialStore::init(bool enable_credential_check) {
4247
}
4348

4449
// Initialize credential store from a JSON file
50+
// Expected format:
51+
// {
52+
// "client_id": "api_key",
53+
// "another_client_id": "another_api_key"
54+
// }
4555
bool ClientCredentialStore::init(const std::string& file_path) {
4656
try {
4757
// Open and read the JSON file

0 commit comments

Comments
 (0)