Library version used
13.2.1.jre8 Microsoft JDBC Driver For SQL Server , 1.55.2 azure-core, 1.15.3 azure-identity , msal4j-1.23.0
Java version
jre8
Scenario
Other - please specify
Is this a new or an existing app?
None
Issue description and reproduction steps
We are migrating our SQL flyway application from managed identity based authentication to Workload identity. We upgraded all jars to the latest version but we were getting this exception.
Exception in thread "main" java.lang.NoSuchMethodError: 'com.microsoft.aad.msal4j.AbstractClientApplicationBase$Builder com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder.instanceDiscovery(boolean)'
at com.azure.identity.implementation.IdentityClientBase.getWorkloadIdentityConfidentialClient(IdentityClientBase.java:513)
at com.azure.identity.implementation.IdentityClient.lambda$getWorkloadIdentityConfidentialClientApplication$7(IdentityClient.java:172)
Tried downgrading the MSAL4J and azure identity version but it did not work
Relevant code snippets
Expected behavior
Expected connection via workload identity to succeed.
Identity provider
Azure Active Directory Federation Services (ADFS)
Regression
No response
Solution and workarounds
No response