update java example for managedidentity using azure-identity library and latest dependency versions [FEATURE REQ] #33243
Labels
Azure.Identity
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Is your feature request related to a problem? Please describe.
We wanted to use the latest version of the azure-identity library to implement managedidentity authentication over kafka api. The java example included in this repository only shows the approach using the old azure-client-authentication library. When we tried to simply replace the azure-client-authentication with azure-identity, we encountered the following issue:
Requesting a token for scope "https://mynamespace.servicebus.windows.net" failed. After investigating the issue we found out that we had to add "/.default" as suffix to the requested scope.
Another problem we encountered was the usage of the outdated java version 1.7. We would expect to use the latest java and dependency versions.
Describe the solution you'd like
We would like to have an example that:
Describe alternatives you've considered
none
Additional context
none
Information Checklist
The text was updated successfully, but these errors were encountered: