Azure 存储文件 "Authentication scheme Bearer is not supported." "AuthenticationFailed"

标签 azure api file storage

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

链接:https://learn.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-版本:2018-03-28

错误:

<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:40fcb1a8-301a-000d-67c8-f9f4b5000000

Time:2019-04-23T11:35:52.9358422Z</Message>
<AuthenticationErrorDetail>

Authentication scheme Bearer is not supported.

</AuthenticationErrorDetail>

</Error>

最佳答案

您收到此错误的原因是,目前仅通过 SMB 协议(protocol)支持基于 Azure AD 的 Azure 文件授权。 REST API 仍然不支持它。

对于 REST API,目前仅 Blob 和队列服务支持基于 Azure AD 的授权。 Read the matrix of storage account authorizations .

关于Azure 存储文件 "Authentication scheme Bearer is not supported." "AuthenticationFailed",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55811030/

相关文章:

python - 具有 Azure AD SSO 的 Snowflake python 连接器

azure - 逻辑应用无法从解析 JSON 操作中找到值

ruby-on-rails - 事件模型序列化器——自定义 JSON 响应

php - 从 API 调用中提取的内容给出 0 值

c++ - 从文件中读取数据到数组中

node.js - 将 Azure 上的 Node 应用程序重置为默认容器镜像

c# - 如何获取在azure Fabric服务中执行我的代码的节点的名称?

php - 拉维尔 5.2 : POST request is always returning "405 Method Not Allowed"

image - 如何在 C++ 中使用 GDI+ 获取图像文件类型?

c - 如何去除从文件中读取的垃圾值?