generateSasUrl and defaultAzureCredential #29399
Labels
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.
feature-request
This issue requires a new behavior in the product in order be resolved.
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
Service Attention
This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
generateSasUrl and defaultAzureCredential
Is your feature request related to a problem? Please describe.
I would like to be able to use the
generateSasUrl
method with the BlobClinet authinticated withDefaultAzureCredential
to generate a SAS URL for a blob. So i can use managed identity to generate SAS URL an keeping a clean codebase.Describe the solution you'd like
I would like that I can call the
generateSasUrl
method on aBlobClinet
that is authinticated withDefaultAzureCredential
.This could be implemeted by either by passing an optional
UserDelegationKey
to thegenerateSasUrl
method:Or by using the
DefaultAzureCredential
to make aBlobServiceClient
and then get aUserDelegationKey
within thegenerateSasUrl
method:Describe alternatives you've considered
An other alternativ would be to generalize
generateBlobSASQueryParameters
to takeDefaultAzureCredential
as credential. However I have not looked in to implementing this.Additional context
Na.
The text was updated successfully, but these errors were encountered: