-
Notifications
You must be signed in to change notification settings - Fork 922
Closed
Labels
enhancementRequesting a feature changeRequesting a feature changestatus:help-wantedIssues that would especially appreciate external development or attentionIssues that would especially appreciate external development or attention
Description
Description
When creating a Producer/Consumer, user is expected to provide configuration based on librdkafka configuration. When we try to set OAUTH options, we get an error:
cimpl.KafkaException: KafkaError{code=_INVALID_ARG,val=-186,str="Property "oauthbearer_token_refresh_cb" must be set through dedicated .._set_..() function"}
We want kafka to contact our OAUTH server and get authenticated to de/serialize messages.
How to reproduce
from confluent_kafka import DeserializingConsumer
config = {
"bootstrap.servers": "localhost:9094",
"group.id": "test-01",
"enable.auto.commit": "true",
"auto.commit.interval.ms": "1000",
"auto.offset.reset": "earliest",
"sasl.mechanism": "OAUTHBEARER",
"oauthbearer_token_refresh_cb": lambda x: logger.info(f"TEST {x}"),
"security.protocol": "SASL_SSL",
}
consumer = DeserializingConsumer(config)
Checklist
Please provide the following information:
- confluent-kafka-python and librdkafka version (
confluent_kafka.version()
andconfluent_kafka.libversion()
): ('1.4.0', 17039360), ('1.4.0', 17039615) - Apache Kafka broker version: 2.4
- Client configuration:
{...}
- Operating system: Linux Mint 19.2
- Provide client logs (with
'debug': '..'
as necessary) - Provide broker log excerpts
- Critical issue
robooo and 2phost
Metadata
Metadata
Assignees
Labels
enhancementRequesting a feature changeRequesting a feature changestatus:help-wantedIssues that would especially appreciate external development or attentionIssues that would especially appreciate external development or attention