我正在尝试使用 Azure 文件 api "https://"mystorageaccountname".file.core.windows.net/?comp=list"
链接: https: //learn.microsoft.com/en-us/rest/api/storageservices/list-shares
认证方式:OAuth 2.0
我已经生成了“授权代码”和“访问令牌”。
链接: https: //learn.microsoft.com/en-us/azure/active-directory/develop/v1-protocols-oauth-code
创建 Azure Ad Domain 服务的资源
在我的存储帐户中启用了“Azure 文件的 Azure Active Directory 身份验证”。
链接:https://learn.microsoft.com/en-gb/azure/storage/files/storage-files-active-directory-enable
标题:
错误:
<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>
Run Code Online (Sandbox Code Playgroud)