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

[QUERY] How to create a blob client using EntraAppIds with Federated credentials? #44063

Open
eddynaka opened this issue May 15, 2024 · 5 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. needs-team-attention 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

@eddynaka
Copy link

Library name and version

Azure.Storage.Blob

Query/Question

Hello!

Given an Azure Entra App Id with federated credentials, how do I properly create it and use it to connect into AzureStorage accounts to successfully create a blobclient?

I tried to use the DefaultAzureCredentials with the ClientId from my app, but I'm not sure if my issuer was right, since I didn't find any documentation.

Environment

No response

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels May 15, 2024
@jsquire jsquire added Client This issue points to a problem in the data-plane of the library. Azure.Identity needs-team-attention This issue needs attention from Azure service team or SDK team and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels May 16, 2024
@jsquire
Copy link
Member

jsquire commented May 16, 2024

Thank you for your feedback. Tagging and routing to the team member best able to assist.

@christothes
Copy link
Member

Hi @eddynaka -
Could you describe more about how you are configuring your credential and what specific errors you are getting?

@christothes christothes added the needs-author-feedback More information is needed from author to address the issue. label May 16, 2024
@github-actions github-actions bot removed the needs-team-attention This issue needs attention from Azure service team or SDK team label May 16, 2024
Copy link

Hi @eddynaka. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

@eddynaka
Copy link
Author

Hello @christothes ,

Since there is not much documentation available, here is what I did:

  1. Created an Entra App
  2. Created a federated credential with the following options: Other, Issuer=https://[Instance]/[Domain]/{TenantId}/v2.0/, Subject=AppId
  3. Gave Blob Owner permission to the entra app
  4. Tried to create using DefaultAzureCredentials with the ClientId to authenticate to the blob

Given those steps, it fails with either issuer not found or unauthorized.
I also tried to use MSAL but didn't work as well.

@github-actions github-actions bot added needs-team-attention This issue needs attention from Azure service team or SDK team and removed needs-author-feedback More information is needed from author to address the issue. labels May 16, 2024
@christothes
Copy link
Member

What is the issuer you are using for the federated credential? That issuer should have the details for you to fill in.

Regarding documentation - here are the general docs for configuring this - https://learn.microsoft.com/en-us/entra/workload-id/workload-identity-federation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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. needs-team-attention 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
Status: Untriaged
Development

No branches or pull requests

3 participants