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.
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?