Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update java example for managedidentity using azure-identity library and latest dependency versions [FEATURE REQ] #33243

Closed
2 tasks done
tristanexsquare opened this issue Jan 31, 2023 · 3 comments
Assignees
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

Comments

@tristanexsquare
Copy link

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:

  • shows the usage of the azure-identity library
  • is working (adds the '/.default' suffix to the requested scope
  • has java version and all dependencies updated

Describe alternatives you've considered
none

Additional context
none

Information Checklist

  • Description Added
  • Expected solution specified
@ghost ghost added needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. 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 labels Jan 31, 2023
@joshfree joshfree added Client This issue points to a problem in the data-plane of the library. Azure.Identity labels Jan 31, 2023
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jan 31, 2023
@joshfree
Copy link
Member

@billwert could you follow up with @tristanessquare on this azure-identity documentation/sample improvement?

@tristanexsquare
Copy link
Author

I think this issue should have been created under https://github.com/Azure/azure-event-hubs-for-kafka. I have already created a PR for this improvement there: Azure/azure-event-hubs-for-kafka#234

Is it possible to move this issue or should I create a new one there and close this issue?

Thank you for your support.

@billwert
Copy link
Contributor

billwert commented Feb 1, 2023

hey @tristanessquare!

Thanks for making the PR. It is probably easiest to just make a new issue over there. Thank you!

@billwert billwert closed this as completed Feb 1, 2023
@github-actions github-actions bot locked and limited conversation to collaborators May 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

No branches or pull requests

3 participants