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

Fix minor bugs #18

Merged
merged 2 commits into from Nov 24, 2022
Merged

Fix minor bugs #18

merged 2 commits into from Nov 24, 2022

Conversation

anchitj
Copy link
Contributor

@anchitj anchitj commented Nov 24, 2022

Fix bugs.

  1. While setting up a cluster using OAuth authentication but without OIDC, oidc is not present in the self instance causing the failure.
  2. Fix the curl command for obtaining the token when using OIDC.

Tested both of them while running https://github.com/confluentinc/confluent-kafka-dotnet/pull/1947/files

@@ -250,7 +250,7 @@ def _setup_client_conf(self):
break

elif self.sasl_mechanism == 'OAUTHBEARER':
if self.oidc is not None:
if hasattr(self, 'oidc'):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to set self.oidc = None in the constructor instead, like we do with the other stuff (.ssl, .zk, etc)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated now

Copy link
Owner

@edenhill edenhill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@edenhill edenhill merged commit f8be9ca into edenhill:master Nov 24, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants