Authentication
TLS Authentication​
sasl_mechanism (str) – Authentication mechanism when security_protocol is configured for SASL_PLAINTEXT or SASL_SSL. Valid values are: PLAIN, GSSAPI, SCRAM-SHA-256, SCRAM-SHA-512, OAUTHBEARER. Default: PLAIN
sasl_plain_username (str) – username for SASL PLAIN authentication. Default: None
sasl_plain_password (str) – password for SASL PLAIN authentication. Default: None
sasl_oauth_token_provider (AbstractTokenProvider) – OAuthBearer token provider instance. (See kafka.oauth.abstract). Default: None