master
h 14 lines 619 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #ifndef NETDATA_FUNCTION_BEARER_GET_TOKEN_H
4 #define NETDATA_FUNCTION_BEARER_GET_TOKEN_H
5
6 #include "database/rrd.h"
7
8 int function_bearer_get_token(BUFFER *wb, const char *function, BUFFER *payload, const char *source);
9 int call_function_bearer_get_token(RRDHOST *host, struct web_client *w, const char *claim_id, const char *machine_guid, const char *node_id);
10
11 #define RRDFUNCTIONS_BEARER_GET_TOKEN "bearer_get_token"
12 #define RRDFUNCTIONS_BEARER_GET_TOKEN_HELP "Get a bearer token for authenticated direct access to the agent"
13
14 #endif //NETDATA_FUNCTION_BEARER_GET_TOKEN_H