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

Proposal: Support az login authentication in the authentication options #27

Open
MissaouiChedy opened this issue Dec 22, 2024 · 1 comment

Comments

@MissaouiChedy
Copy link

MissaouiChedy commented Dec 22, 2024

Most Azure Services support in their client SDKs the capability to authenticate to the service via az cli (az login), this is very useful for local development scenario since it avoids the management of secrets by developers.

For example by using the Azure Event Hubs .NET Client SDK, it is possible to specify new DefaultAzureCredential() as credentials:

var processor = new EventProcessorClient(
    storageClient,
    "main-consumer",
    "********.servicebus.windows.net",
    "main-topic",
    new DefaultAzureCredential());

This covers local az login authentication as well as managed identity authentication and should be available in the Java SDK.

The proposal is to add local az cli authentication to the authentication options for all samplers of this repository.

@kuniteru @dislev @MalachiMcIntosh
If this proposal makes sense, please let me know, I will be glad to contribute.

@MissaouiChedy
Copy link
Author

I have a working quick and dirty proof of concept implementation for the eventhubs sampler, available in this commit.

And it looks like this:
image

Please let me know if it is relevant

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