【发布时间】:2020-10-21 00:57:57
【问题描述】:
我想通过我的自定义身份验证保护我的 Azure blob 存储资源(图像、pdf 等)。我的用户不在 Azure AD 中。什么是最佳做法?
【问题讨论】:
我想通过我的自定义身份验证保护我的 Azure blob 存储资源(图像、pdf 等)。我的用户不在 Azure AD 中。什么是最佳做法?
【问题讨论】:
Blob 存储的安全建议:https://docs.microsoft.com/en-us/azure/storage/blobs/security-recommendations
您也可以使用 Azure SAS:https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview 当客户端使用 SAS 令牌访问 blob 数据时要求 HTTPS 有助于最大限度地降低窃听风险。有关详细信息,请参阅使用共享访问签名 (SAS) 授予对 Azure 存储资源的有限访问权限。
授权对 Azure 存储的请求:https://docs.microsoft.com/en-us/rest/api/storageservices/authorize-requests-to-azure-storage
从 Azure AD 获取令牌以授权来自客户端应用程序的请求:https://docs.microsoft.com/en-us/azure/storage/common/storage-auth-aad-app?tabs=dotnet
【讨论】: