summaryrefslogtreecommitdiffstats
path: root/web/api/web_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'web/api/web_api.h')
-rw-r--r--web/api/web_api.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/api/web_api.h b/web/api/web_api.h
index 0ca91841f..840ac8dcb 100644
--- a/web/api/web_api.h
+++ b/web/api/web_api.h
@@ -9,6 +9,12 @@
#include "web/api/health/health_cmdapi.h"
#include "web/api/queries/weights.h"
+extern bool netdata_is_protected_by_bearer;
+extern DICTIONARY *netdata_authorized_bearers;
+bool api_check_bearer_token(struct web_client *w);
+bool extract_bearer_token_from_request(struct web_client *w, char *dst, size_t dst_len);
+void bearer_tokens_init(void);
+
struct web_api_command {
const char *command;
uint32_t hash;