diff options
author | Phong Pham <pt2pham@users.noreply.github.com> | 2019-03-22 21:24:29 -0400 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2019-03-22 18:24:29 -0700 |
commit | 8e2ed3ebb45f98e71b7c77fdd52472b815bb7ad2 (patch) | |
tree | 3e01a6011767468010734d603bcfdf4c64f7afa5 /kafka/client_async.py | |
parent | d032844ad945b6e99845c40cfe08e026a56d332a (diff) | |
download | kafka-python-8e2ed3ebb45f98e71b7c77fdd52472b815bb7ad2.tar.gz |
Support SASL OAuthBearer Authentication (#1750)
Diffstat (limited to 'kafka/client_async.py')
-rw-r--r-- | kafka/client_async.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kafka/client_async.py b/kafka/client_async.py index fa150db..ebd4af7 100644 --- a/kafka/client_async.py +++ b/kafka/client_async.py @@ -151,6 +151,8 @@ class KafkaClient(object): sasl mechanism handshake. Default: 'kafka' sasl_kerberos_domain_name (str): kerberos domain name to use in GSSAPI sasl mechanism handshake. Default: one of bootstrap servers + sasl_oauth_token_provider (AbstractTokenProvider): OAuthBearer token provider + instance. (See kafka.oauth.abstract). Default: None """ DEFAULT_CONFIG = { @@ -188,7 +190,8 @@ class KafkaClient(object): 'sasl_plain_username': None, 'sasl_plain_password': None, 'sasl_kerberos_service_name': 'kafka', - 'sasl_kerberos_domain_name': None + 'sasl_kerberos_domain_name': None, + 'sasl_oauth_token_provider': None } def __init__(self, **configs): |