Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-5653

Support Azure client_id for authentication

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

      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 Unassigned
            Reporter:
            orxorandnot@gmail.com Ivan Zaitsev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: