-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: implement oauthbearer token refresh cb setter #546
Conversation
4aa58ea
to
d26ded3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great PR! I have been waiting for this PR for a while now. ❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! LGTM appart from a few comments
conf.c
Outdated
|
||
Z_ADDREF_P(&fci.function_name); | ||
|
||
if (conf->cbs.log) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be conf->cbs.oauthbearer_token_refresh
conf.c
Outdated
#ifndef HAS_RD_KAFKA_OAUTHBEARER_TOKEN_REFRESH_CB | ||
zend_throw_exception_ex(NULL, 0, "This version of rdkafka does not support the OAUTHBEARER sasl mechanism"); | ||
return; | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change this so that the setOauthbearerTokenRefreshCb
method does not exist if HAS_RD_KAFKA_OAUTHBEARER_TOKEN_REFRESH_CB
is not defined.
(stub files also support #ifdef)
Thank you for the speedy review @arnaud-lb ! I'm a bit new to PHP extensions but I believe I've addressed your current round of feedback. Also, sorry for not providing a summary. You beat me to the punch. My goal here is to add support for The other half is adding support for |
Nice work, thank you! I'm generally open to adding any method provided by librdkafka. Please do so in a separate PR, as this will simplify reviews (maybe just one PR for the two methods, as they are very related). |
No description provided.