diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-07-20 04:50:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-07-20 04:50:01 +0000 |
commit | cd4377fab21e0f500bef7f06543fa848a039c1e0 (patch) | |
tree | ba00a55e430c052d6bed0b61c0f8bbe8ebedd313 /web/api/web_api.h | |
parent | Releasing debian version 1.40.1-1. (diff) | |
download | netdata-cd4377fab21e0f500bef7f06543fa848a039c1e0.tar.xz netdata-cd4377fab21e0f500bef7f06543fa848a039c1e0.zip |
Merging upstream version 1.41.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'web/api/web_api.h')
-rw-r--r-- | web/api/web_api.h | 6 |
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; |