【发布时间】:2015-08-08 12:47:30
【问题描述】:
我正在 Postman 中发送以下请求,以从位于此 URL https://steamo.blob.core.windows.net/testcontainer/dog.jpg 的 Azure Blob 存储中检索一个简单的 .jpg
GET /testcontainer/dog.jpg HTTP/1.1
Host: steamo.blob.core.windows.net
Authorization: SharedKey steamo:<my access key>
x-ms-date: Tue, 26 May 2015 17:35:00 GMT
x-ms-version: 2014-02-14
Cache-Control: no-cache
Postman-Token: b1134f8a-1a03-152c-2810-9cb351efb9ce
如果您不熟悉 Postman,它只是一个 REST 客户端 - Postman-Token 标头可能会被忽略。
我的访问密钥是从我的 Azure 管理门户复制的。
我收到此错误:
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:2482503d-0001-0033-60da-9708ed000000 Time:2015-05-26T17:35:41.4577821Z
有了这个 AutheticationErrorDetail:
The MAC signature found in the HTTP request '<my access key>' is not the same as any computed signature. Server used following string to sign: 'GET x-ms-date:Tue, 26 May 2015 17:35:00 GMT x-ms-version:2014-02-14 /steamo/testcontainer/dog.jpg'.
我该如何解决这个问题?如果您需要我提供更多信息,请告诉我。
【问题讨论】:
标签: rest azure-blob-storage postman