Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration error (OAUTH) #2402

Open
3 of 8 tasks
Cheshirre opened this issue Jan 17, 2025 · 0 comments
Open
3 of 8 tasks

Configuration error (OAUTH) #2402

Cheshirre opened this issue Jan 17, 2025 · 0 comments

Comments

@Cheshirre
Copy link

Cheshirre commented Jan 17, 2025

Description

No such configuration property: \"sasl.oauthbearer.token.endpoint.url\"

then

No such configuration property: \"sasl.oauthbearer.client.id\"

When set sasl.oauthbearer.client.id and sasl.oauthbearer.token.endpoint.url in Producer/Сonsumer config.
And when set directly in the code.

OS -> Ubuntu Linux, MacOS, etc.
Nuget package: Confluent.Kafka, Version=2.5.0.0 and later

How to reproduce

Reproduces on unix OS family: local or in docker container.
Works on windows.

            var producerConfiguration = configuration.GetSection("ApacheKafka:Publisher").AsEnumerable(true);

            ProducerConfig pc = new ProducerConfig(producerConfiguration.ToDictionary<string, string>());
            pc.SaslOauthbearerTokenEndpointUrl = "<url>";
            pc.SaslOauthbearerClientId = "<client-id>";
            
            //...

            _producer = new ProducerBuilder<string, string>(pc)
                .Build();

Checklist

Please provide the following information:

  • A complete (i.e. we can run it), minimal program demonstrating the problem. No need to supply a project file.
  • Confluent.Kafka nuget version.
  • Apache Kafka version.
  • Client configuration.
  • Operating system.
  • Provide logs (with "debug" : "..." as necessary in configuration).
  • Provide broker log excerpts.
  • Critical issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant