kop icon indicating copy to clipboard operation
kop copied to clipboard

[FEATURE] Support OAuth authentication in Python client

Open sijie opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

The Python Client doesn't support OAuth2 authentication yet.

Describe the solution you'd like

You can provide an implementation of such a function:

def _get_token():
   # TODO: return a token and the expire time

and pass this function to oauth_cb. See example: https://github.com/confluentinc/confluent-kafka-python/blob/master/examples/oauth_producer.py#L32

Describe alternatives you've considered

N/A

Additional context

N/A

sijie avatar Mar 29 '23 18:03 sijie