confluentinc/examples

Authentication issue with SSL Kafka apach for OAutheBearerLogin Moudle

Scarlettliuyc opened this issue · 0 comments

Description
A clear and concise description of what the issue is.
Hi team
We have issue with Java confluentic SDK that running Kafka apache with Azure Event Hub.
There are many examples in this repo, so identify the example by linking to the relevant documentation page.

Troubleshooting
We followed this document to set the https://docs.confluent.io/platform/current/kafka/authentication_sasl/authentication_sasl_oauth.html
the Oauth but get error intermittently for error "org.apache.kafka.common.errors.SaslAuthenticationException: Failed to configure SaslClientAuthenticator
Caused by: java.lang.IllegalArgumentException: Callback handler must be castable to org.apache.kafka.common.security.auth.AuthenticateCallbackHandler: org.apache.kafka.common.security.oauthbearer.internals.OAuthBearerSaslClientCallbackHandler"

And then it disconnect with Event Hub server , then we need to restart our system again to reconnect it.
We confirmed with Event Hub team there isn't any record for that time in Event Hub.

Any suggestions you have to avoid this issue? are there any apache issue with Kafka?