aiokafka
aiokafka copied to clipboard
[QUESTION] Is there support to refresh OAuth tokens automatically based on token expiration duration?
Hi,
We're using OAUTHBEARER sasl_mechanism to connect to AWS MSK with MSKAuthTokenProvider generated tokens. The tokens have an expiration duration. Is there any way to make the Kafka clients refresh the connections before the token expires? Does the client support KIP-368?
Right now, we observe that a connection is established. Later, there will be a Kafka connection failure because the connection is closed by the broker.