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

Authentication Azure.authenticate(new File("my.azureauth")).withDefaultSubscription() #26218

Closed
antonio-rodriges opened this issue Jan 1, 2022 · 5 comments
Assignees
Labels
ARM Azure.Identity blocking-customer-adoption Issue is blocking the migration from Track 1 to Track 2 customer-reported Issues that are reported by GitHub users external to the Azure organization. Docs Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@antonio-rodriges
Copy link

This page states: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/MIGRATION_GUIDE.md

In old version (com.microsoft.azure.management.**)

Azure azure = Azure.authenticate(new File("my.azureauth")).withDefaultSubscription();

In new version, this feature has been removed. If this creates concern on your side, please file an issue to let us know.

It was very convenient to authenticate like this, I could create files for each case - now I have to change code or create my parsing facilities - very inconvenient.

@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 1, 2022
@joshfree joshfree added ARM blocking-customer-adoption Issue is blocking the migration from Track 1 to Track 2 Docs Mgmt This issue is related to a management-plane library. labels Jan 3, 2022
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jan 3, 2022
@joshfree
Copy link
Member

joshfree commented Jan 3, 2022

@weidongxu-microsoft could you please follow up with this migration guide issue reported by @antonio-rodriges?

@weidongxu-microsoft
Copy link
Member

weidongxu-microsoft commented Jan 4, 2022

@antonio-rodriges

The feature is not supported in track2 (at least for now), partly for security reason (as this feature mainly for dev test only).

Personally, as dev, I usually create a few scripts of different env variables for different cases, and load them depends on my case (``).

If you do feel this auth file feature is important to you, I can forward this request to identity team.

@antonio-rodriges
Copy link
Author

antonio-rodriges commented Jan 4, 2022 via email

@ghost ghost added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Jan 4, 2022
@weidongxu-microsoft
Copy link
Member

@g2vinay

Does azure-identity have plan to support file auth?

@g2vinay
Copy link
Member

g2vinay commented Jul 7, 2023

This feature is not being supported currently due to security reasons.
You can try loading details into environment from your files, but not recommend it as its easy for data to be compromised especially in production environments.

@g2vinay g2vinay closed this as completed Jul 7, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ARM Azure.Identity blocking-customer-adoption Issue is blocking the migration from Track 1 to Track 2 customer-reported Issues that are reported by GitHub users external to the Azure organization. Docs Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team 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

4 participants