【问题标题】:Azure storage file "Authentication scheme Bearer is not supported." "AuthenticationFailed"Azure 存储文件“不支持身份验证方案承载”。 “身份验证失败”
【发布时间】:2019-04-23 12:15:19
【问题描述】:

我正在尝试使用 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

错误:

<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>

【问题讨论】:

    标签: azure api file storage


    【解决方案1】:

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

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

    【讨论】:

    • 我使用了 hte blob 存储 url,它仍然给出同样的错误
    • 使用 Bearer 获取队列的相同错误
    猜你喜欢
    • 2017-10-30
    • 1970-01-01
    • 2021-10-16
    • 1970-01-01
    • 2022-11-04
    • 2017-11-27
    • 1970-01-01
    • 2022-10-17
    • 2017-03-01
    相关资源
    最近更新 更多