Azure存储文件“不支持身份验证方案承载”。 “验证失败”

时间:2019-04-23 12:15:19

标签: azure api file storage

我正在尝试使用Azure文件api“ https://” mystorageaccountname“ .file.core.windows.net /?comp = list”

链接:https://docs.microsoft.com/en-us/rest/api/storageservices/list-shares

身份验证方法:OAuth 2.0

标题:

  • 授权:承载者eyJ0 .................
  • x-ms-date:2019年4月23日星期二11:35:45 GMT
  • x-ms-version:2018-03-28

错误:

AuthenticationFailed

<Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

RequestId:40fcb1a8-301a-000d-67c8-f9f4b5000000

时间:2019-04-23T11:35:52.9358422Z

不支持身份验证方案承载。

1 个答案:

答案 0 :(得分:2)

出现此错误的原因是,当前仅通过SMB协议支持基于Azure AD的Azure Files授权。仍然不受REST API支持。

对于REST API,到目前为止,仅Blob和队列服务支持基于Azure AD的授权。