Support Azure client_id for authentication

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Authentication
    • None
    • None
    • Java Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Azure AKS can have multiple user assigned identities. When it is the case, the "http://169.254.169.254:80/metadata/identity/oauth2/token?api-version=2018-02-01" would fail if client_id parameter is not specified.

       

      Specific error: "Multiple user assigned identities exist, please specify the clientId / resourceId of the identity in the token request".

       

      Current implementation ignores client_id parameter.
      Code details: https://github.com/mongodb/mongo-java-driver/blob/8a4ce4fa187537bf43f0ba2caa0250169d735e0c/driver-core/src/main/com/mongodb/internal/authentication/AzureCredentialHelper.java#L62

              Assignee:
              Unassigned
              Reporter:
              Ivan Zaitsev
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: