kamranayub / azure-storage-rest-postman Goto Github PK
View Code? Open in Web Editor NEWPostman collection to sign requests to Azure Storage Management REST API
License: Apache License 2.0
Postman collection to sign requests to Azure Storage Management REST API
License: Apache License 2.0
Hello,
Thanks for the great Postman collection. I'm receiving the following error when attempting to send a GET request to Azure ADLS Gen2 storage.
Do you know if there is a difference between standard blob and ADLS Gen2 API that needs adjusting in your script?
<?xml version="1.0" encoding="utf-8"?>
<Error>
<Code>AuthenticationFailed</Code>
<Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:c4a7afec-a01e-0067-3ea5-75a601000000
Time:2020-08-18T21:18:08.4735449Z</Message>
<AuthenticationErrorDetail>The MAC signature found in the HTTP request '4C4uk2at6O4YXwwu13atahp/uGC4OMMENX8C5nfH8M0=' is not the same as any computed signature. Server used following string to sign: 'GET
x-ms-date:Tue, 18 Aug 2020 21:18:08 GMT
/asdltest/'.</AuthenticationErrorDetail>
</Error>
Hi Kamranayub,
I have downloaded your postman collection and tried to perform some operations on blob. The GET operation works fine, but when I try to upload a file using PUT operation I am receiving the following error :
AuthenticationFailed
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:e0cdd282-301e-0030-656f-63747e000000
Time:2021-06-17T11:57:01.6867488Z
The MAC signature found in the HTTP request '9GvSpqmVGuFV+HPPR4daDlzJV8MN6SELFrvINwgtbS0=' is not the same as any computed signature. Server used following string to sign: 'PUT
56
text/plain
x-ms-blob-type:BlockBlob
x-ms-date:Thu, 17 Jun 2021 11:57:01 GMT
x-ms-version:2017-04-17
Could you guide me on how to resolve the issue?
Postman just reports: "There was an error in evaluating the Pre-request Script: TypeError: Cannot read property 'toString' of undefined"
I have setup all the variables needed
Hi there,
Thank you so much for providing such a wonderful way to access the Storage Blob. I would appreciate if you could share some more details about how to use the collection(I am newbee for Postman).
I am trying to use ShardKey to access the storage blob and apparently you have made everything in the javascript. However, when i access the private blob. Do i need to add authentication header in the request inside of the collection? Please kindly check the request as follows:
I am not sure if i am using the collection correclty. Thanks for your insights in advance!
receiving the following error when running the Get Call
TypeError: Cannot read property 'toString' of undefined
Hi there,
The PUT request fails authorization when sent by Postman 8.0.5, don't know about other versions.
As I found the problem is an incorrect signature generated because "content-length" header is not included in it.
Proved this by passing a correct value to signatureParts
array instead of headers["content-length"] || ""
.
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!
Hey, first of all thanks for the postman collection it works great. I am trying to use the same implementation of authorization in using typescript. What should I do for replacing the Pm.methods in typescript and get the same values as Pm.methods did
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.