使用策略标识符访问SAS URL时出现问题 [英] Problem accessing SAS url with Policy Identifier
问题描述
大家好, 谢谢和问候, Hi Guys, Thanks and regards, 在创建访问策略时,您似乎已经提到了到期日期。我建议您创建无到期策略的访问策略 您需要在7天后重新生成URL,但不必对访问策略进行任何更改。 -------------------------------------------- -------------------------------------------------- ------- 点击帮助您的帖子上的"标记为答案",这对其他社区成员有益。 这篇关于使用策略标识符访问SAS URL时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
我想存储Azure blob存储文件SAS的URL,时间范围为10-1500分钟。我使用了以下字符串来签署它允许我生成和访问文件的
最多60分钟,如果我想生成更多时间然后60分钟它要求我添加策略标识符。
我创建了容器策略标识符,并尝试根据该标识符生成签名。 < span style ="display:inline; font-family:Helvetica,Arial,sans-serif; color:#1d2129">在
访问文件时抛出以下错误
"访问政策字段可以与签名或SAS标识符相关联,但不能同时与两者相关联。在CRM在线环境中我们有安全限制但不能使用Azure SDK生成本来相当快的URL。
我要使用的字符串如下所示。$
r
2017-12-11T13:01:58Z
2017-12-11T14:06: 58Z
/ mystorage / downloadrequests /
MyIdentifier
并在生成签名后使用以下URL
https://mystorage.blob.core.windows.net/
任何人都可以显示一些方向,Microsoft文档没有提及任何明确的内容,并尝试在线提供所有内容。
提前付款。
问候,
Hiren。
Hiren Solanki。
如果有帮助,请投票或标记为答案。
I want to store Azure blob stored file SAS based URL for the time frame ranging from 10-1500 minutes. I have used following string to sign where it allows me to generate and access file for
max of 60 minutes, if I want to generate for more time then 60 minutes it asks me to add policy identifier.
I have created container policy identifier and tried to generate signature based on that. upon
accessing file It throws following error
"Access policy fields can be associated with signature or SAS identifier but not both".
in CRM online environment we have security limitation and can't use Azure SDK to generate URL which would have been rather quick.
String to sign I am using is as below.
r
2017-12-11T13:01:58Z
2017-12-11T14:06:58Z
/mystorage/downloadrequests/
MyIdentifier
and Using following URL once signature is generated
https://mystorage.blob.core.windows.net/
Can anybody please show some direction, Microsoft documentation is not mentioning anything clear about this and tried everything online available.
Thanks in advance.
Regards,
Hiren.
Hiren Solanki.
Please vote or mark as a answer if it helped you.推荐答案
,并在创建签名URL时指定到期日期并查看是否有效它有帮助。