You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
In the Azure portal and Storage Explorer, when you generate a SAS token, you are given the option to use the generated SAS URL, which can include much of the details needed for the rest of the operations.
These are in the form:
https://a.blob.core.windows.net/b/c?d
This would simplify the use of Client::azure_sas() as well as provide some of the needed information when the SAS token is limited to a specific object, rather than container or storage account.
As an example, providing the SAS URL looks like this now:
let client = Client::azure_sas("a", "https://a.blob.core.windows.net/b/c?d");
let future client.get_blob().with_container_name("b").with_blob_name("c").finalize();
Where parsing that information out (of which, Url::Options is already being used to parse the token), it could look like this:
let client = Client::azure_sas_url("https://a.blob.core.windows.net/b/c?d");
let future = client.get_blob().finalize();
Supporting SAS URLs significantly improves the ergonomics of user supplied storage locations. As an example, the javascript library supports these:
In the Azure portal and Storage Explorer, when you generate a SAS token, you are given the option to use the generated SAS URL, which can include much of the details needed for the rest of the operations.
These are in the form:
This would simplify the use of Client::azure_sas() as well as provide some of the needed information when the SAS token is limited to a specific object, rather than container or storage account.
As an example, providing the SAS URL looks like this now:
Where parsing that information out (of which, Url::Options is already being used to parse the token), it could look like this:
Supporting SAS URLs significantly improves the ergonomics of user supplied storage locations. As an example, the javascript library supports these:
The text was updated successfully, but these errors were encountered: