【发布时间】: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
-
我已生成“授权码”和“访问令牌”。
链接:https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-protocols-oauth-code
-
Azure 广告域服务的创建资源
-
在我的存储帐户中启用“Azure 文件的 Azure Active Directory 身份验证”。
链接:https://docs.microsoft.com/en-gb/azure/storage/files/storage-files-active-directory-enable
标题:
- 授权:承载 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>
【问题讨论】: