From cd4377fab21e0f500bef7f06543fa848a039c1e0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 20 Jul 2023 06:50:01 +0200 Subject: Merging upstream version 1.41.0. Signed-off-by: Daniel Baumann --- web/api/web_api.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'web/api/web_api.h') 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; -- cgit v1.2.3