我正在尝试使用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
标题:
错误:
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
不支持身份验证方案承载。
答案 0 :(得分:2)
出现此错误的原因是,当前仅通过SMB
协议支持基于Azure AD的Azure Files授权。仍然不受REST API
支持。
对于REST API,到目前为止,仅Blob和队列服务支持基于Azure AD的授权。