Skip to content

Commit

Permalink
Move oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
ods committed Oct 22, 2023
1 parent 62a789d commit 417e733
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion aiokafka/consumer/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class AIOKafkaConsumer:
sasl_plain_password (str): password for SASL ``PLAIN`` authentication.
Default: None
sasl_oauth_token_provider (~aiokafka.abc.AbstractTokenProvider):
OAuthBearer token provider instance. (See :mod:`kafka.oauth.abstract`).
OAuthBearer token provider instance. (See :mod:`aiokafka.oauth`).
Default: None
Note:
Expand Down
6 changes: 1 addition & 5 deletions kafka/oauth/abstract.py → aiokafka/oauth.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
from __future__ import absolute_import

import abc

# This statement is compatible with both Python 2.7 & 3+
ABC = abc.ABCMeta('ABC', (object,), {'__slots__': ()})

class AbstractTokenProvider(ABC):
class AbstractTokenProvider(abc.ABC):
"""
A Token Provider must be used for the SASL OAuthBearer protocol.
Expand Down
2 changes: 1 addition & 1 deletion aiokafka/producer/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class AIOKafkaProducer:
Default: :data:`None`
sasl_oauth_token_provider (:class:`~aiokafka.abc.AbstractTokenProvider`):
OAuthBearer token provider instance. (See
:mod:`kafka.oauth.abstract`).
:mod:`aiokafka.oauth`).
Default: :data:`None`
Note:
Expand Down
3 changes: 0 additions & 3 deletions kafka/oauth/__init__.py

This file was deleted.

0 comments on commit 417e733

Please sign in to comment.