Skip to content

[Bug] Connection issues with Workolad identity connection for combination of 13.2.1.jre8 Microsoft JDBC Driver For SQL Server , 1.55.2 azure-core, 1.15.3 azure-identity , msal4j-1.23.0 #1003

@bharath300

Description

@bharath300

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Requires more infoMore information is needed, from either the person who opened the issue or another teamconfidential-clientFor issues related to confidential client apps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions