-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Adding in feature to generate SAS from Storage Clients #15972
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks awesome! Can you do me a favor and run \eng\scripts\Export-API.ps1 to make reviewing the API surface changes easier?
…rs, updated tests and recordings, ran export-APIs
@gapra-msft @tg-msft @kasobol-msft @seanmcc-msft could you all take another look? thanks! |
sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.0.cs
Outdated
Show resolved
Hide resolved
sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.netstandard2.0.cs
Outdated
Show resolved
Hide resolved
@amnguye Hi! Just a quick question - when is this PR scheduled to be released? Is it for v (I didn't see if this was tagged to a specific issue or milestone, for reference). cheers! |
Hi @PureKrome! We are planning to release this next week for v12.5.0 ( |
@amnguye That's great news! thanks so much and keep up the great work 👍🏻 🍰 |
- All Storage Clients (except Service Clients) now have the property CanGenerateSas and the method GenerateSas - Storage Service Clients have the property CanGenerateAccountSas and the method GenerateAccountSas
For each client in the Azure.Storage.* libraries, this PR adds a the following new APIs
public Uri GenerateSasUri(<service>SasBuilder builder)
and for each
<service>ServiceClient
there is the also APIs forpublic Uri GenerateAccountSasUri(AccountSasBuilder builder)
I also resolved #15403 in this PR as it was breaking some of my tests.
I also removed the ability/deprecated to set the sas version in blobs, as we moved to a new StringToSign.