diff options
author | Lars Jørgen Solberg <larsjs@met.no> | 2016-07-25 08:40:38 +0000 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2016-08-03 11:44:33 -0700 |
commit | 6b801a8d2e3ec387c681100df02de49b322ffedd (patch) | |
tree | c01b1302a7100118361d6663159f01a46bde6824 /kafka/consumer/group.py | |
parent | c693709aaf9e292c8614b9ab345d3322d4f71caa (diff) | |
download | kafka-python-6b801a8d2e3ec387c681100df02de49b322ffedd.tar.gz |
implement sasl PLAIN mechanism
Diffstat (limited to 'kafka/consumer/group.py')
-rw-r--r-- | kafka/consumer/group.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py index ed12ec0..489d96d 100644 --- a/kafka/consumer/group.py +++ b/kafka/consumer/group.py @@ -186,6 +186,13 @@ class KafkaConsumer(six.Iterator): (such as offsets) should be exposed to the consumer. If set to True the only way to receive records from an internal topic is subscribing to it. Requires 0.10+ Default: True + sasl_mechanism (str): string picking sasl mechanism when security_protocol + is SASL_PLAINTEXT or SASL_SSL. Currently only PLAIN is supported. + Default: None + sasl_plain_username (str): username for sasl PLAIN authentication. + Default: None + sasl_plain_password (str): passowrd for sasl PLAIN authentication. + Defualt: None Note: Configuration parameters are described in more detail at @@ -234,6 +241,9 @@ class KafkaConsumer(six.Iterator): 'metrics_sample_window_ms': 30000, 'selector': selectors.DefaultSelector, 'exclude_internal_topics': True, + 'sasl_mechanism': None, + 'sasl_plain_username': None, + 'sasl_plain_password': None, } def __init__(self, *topics, **configs): |