Skip to main content
nisha2112
Silver ⭐️
September 28, 2023
Question

Getting {myTopic=TOPIC_AUTHORIZATION_FAILED} in Kafka

I am following https://medium.com/egen/how-to-configure-oauth2-authentication-for-apache-kafka-cluster-using-okta-8c60d4a85b43 for setting up OAuth2.0

But when I try to produce data I get Error while fetching metadata with correlation id 43 : {myTopic=TOPIC_AUTHORIZATION_FAILED}.

Can anyone please help me out

I tried adding invalid details in my sasl-oauth2-consumerapp-config.properties file to check if it is picking the right file , it seems like right file is picked.

1 reply

gtorres
Silver ⭐️⭐️⭐️
Silver ⭐️⭐️⭐️
December 5, 2023

The message means that the authentication is valid, but the user is not authorized to use the topic. Can you confirm what authorizer are you using and the current oauth configuration?

 

Translate