Open samkhopkar opened 7 months ago
You need to set the values of the token in the callback
Thanks for getting back. We got it working fine.
On Thu, Jun 6, 2024 at 10:50 AM Tyler Rockwood @.***> wrote:
You need to set the values of the token in the callback
— Reply to this email directly, view it on GitHub https://github.com/morganstanley/modern-cpp-kafka/issues/231#issuecomment-2152864969, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR6KJDAHQVUG4PRMQ6MPYWLZGCANZAVCNFSM6AAAAABF7NCN72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJSHA3DIOJWHE . You are receiving this because you authored the thread.Message ID: @.***>
I have a simple barebones oAuth callback registered as follows
Yet when the callback is invoked it gets an exception. I added some debug lines in KafkaClient.h to log the details
oauthbearerTokenRefreshCallback called calling onOauthbearerTokenRefresh() oauthbearerTokenRefreshCallback failed [basic_string::_M_construct null not valid]
What am I doing wrong in registering this simple oAuth callback ?
Here is the code from KafkaClient.h (library header) where the callback is being invoked