summaryrefslogtreecommitdiffstats
path: root/src/web/api/http_auth.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 17:33:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 17:34:10 +0000
commit83ba6762cc43d9db581b979bb5e3445669e46cc2 (patch)
tree2e69833b43f791ed253a7a20318b767ebe56cdb8 /src/web/api/http_auth.h
parentReleasing debian version 1.47.5-1. (diff)
downloadnetdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.tar.xz
netdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.zip
Merging upstream version 2.0.3+dfsg (Closes: #923993, #1042533, #1045145).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/web/api/http_auth.h')
-rw-r--r--src/web/api/http_auth.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/api/http_auth.h b/src/web/api/http_auth.h
index f339a44cf..0b01fdb1e 100644
--- a/src/web/api/http_auth.h
+++ b/src/web/api/http_auth.h
@@ -11,7 +11,7 @@ extern bool netdata_is_protected_by_bearer;
bool extract_bearer_token_from_request(struct web_client *w, char *dst, size_t dst_len);
-time_t bearer_create_token(nd_uuid_t *uuid, struct web_client *w);
+time_t bearer_create_token(nd_uuid_t *uuid, HTTP_USER_ROLE user_role, HTTP_ACCESS access, nd_uuid_t cloud_account_id, const char *client_name);
bool web_client_bearer_token_auth(struct web_client *w, const char *v);
static inline bool http_access_user_has_enough_access_level_for_endpoint(HTTP_ACCESS user, HTTP_ACCESS endpoint) {