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

Add support for AzureDefaultCredential-based auth #178

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

headcr4sh
Copy link

Unfortunately, this PR contains a lot more changes than initially intended.
Seems like the coordinates of the Azure Storage Client library have changed and the API of the implementation was completely overhauled as well.

I took the time to try and adhere to current best practices when working with the Azure SDK for Java, e.g. utilizing the bills-of-material (BOM) dependency to make sure that all Azure-related libraries fit together, nicely.

I did not (yet) test the new library in my Cloud environment, but wanted to get this drafted PR out of the door as soon as possible to gather some feedback from the original maintainer.

@rhusar

Closes: #177

@@ -50,18 +50,15 @@ public class AZURE_PINGDiscoveryTest {
public void testProtocolStack() throws Exception {
JChannel channel = new JChannel(STACK_XML_CONFIGURATION);

channel.getProtocolStack().getProtocols().replaceAll(protocol -> {
Copy link
Author

Choose a reason for hiding this comment

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

Just an automatic conversion that my IDE performed to use "try-with-resources".

@@ -63,7 +63,7 @@

<properties>
<version.org.jgroups>5.3.6.Final</version.org.jgroups>
<version.com.microsoft.azure.azure-storage>8.6.6</version.com.microsoft.azure.azure-storage>
<version.com.azure-azure-sdk-bom>1.2.23</version.com.azure-azure-sdk-bom>

<!-- Overridden versions as managed by WildFly -->
Copy link
Author

Choose a reason for hiding this comment

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

I did not check if the updated Azure SDK components still cause issues here or (worse) in other parts of the dependency tree....

@rhusar rhusar self-assigned this May 17, 2024
@rhusar
Copy link
Member

rhusar commented May 17, 2024

Upon a brief look the changes look pretty good to me! Excellent work.

So what I think I will do, is that I ll move to new major branch as this bumps the SDK, pull your changes in, polish and test.

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.

Feature request: Support for DefaultAzureCredential-backed authentication method
2 participants