azure-storage-rest-postman
azure-storage-rest-postman copied to clipboard
Construct CanonicalizedResource needs a pm.variable.replaceIn() to apply replaceIn to parameterized container
If you use a parameterized resource, such as {{azure_container}} in the URL, then this must be populated.
See the change to line 57 below, to add pm.variables.replaceIn()
when building the account/container
header line.
Failure to make this change means that authentication fails,
// Construct CanonicalizedResource
const canonicalResourceParts = [
`/${pm.variables.get("azure_storage_account")}${pm.variables.replaceIn(pm.request.url.getPath())}`
Thanks for this super helpful piece of code!