20 #include <librdkafka/rdkafkacpp.h>
49 using kafka_oauth_callback_wrapper_type = std::map<std::string, std::string> (*)(
void*);
50 using python_callable_type =
void*;
68 python_callable_type python_callable);
79 kafka_oauth_callback_wrapper_type callback_wrapper_;
80 python_callable_type python_callable_;
Callback to retrieve OAuth token from external source. Invoked when token refresh is required.
void oauthbearer_token_refresh_cb(RdKafka::Handle *handle, std::string const &oauthbearer_config)
Invoke the Python callback function to get the OAuth token and its expiration time.
python_oauth_refresh_callback(kafka_oauth_callback_wrapper_type callback_wrapper, python_callable_type python_callable)
Construct a new python oauth refresh callback object.