gpt4 book ai didi

azure - 从 Azure Blob 存储中的任何身份验证检查中排除 sig querystring 参数

转载 作者:行者123 更新时间:2023-12-03 01:10:24 26 4
gpt4 key购买 nike

我正在使用 Azure Blob 为 facebook iframe 应用程序提供静态资源,例如 html、图像、css 和 js。

我正在努力将该应用程序集成为 odnoklassniki.ru (ok.ru) iframe 应用程序。因此,在应用程序配置中,假设我设置了指向 index.html 的应用程序 url。
当我打开应用程序时,iframe 将包含一些 querystring parameters from the social network .

https://****.blob.core.windows.net/****/index.html?web_server=ok.ru&first_start=0&logged_user_id=1234&sig=3688aaa2d712f7a7540681e1234a3039&new_sig=1&...

由于包含的参数之一是 sig,这与 shared blobs authentication 的签名冲突。 ,会返回如下错误:

<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:aabaf862-0001-0009-58a4-91b035000000 Time:2015-05-18T19:57:59.5979366Z
</Message>
<AuthenticationErrorDetail>sr is mandatory. Cannot be empty</AuthenticationErrorDetail>
</Error>

是否有任何解决方法或 azure 配置可以避免此错误?

最佳答案

您无法更改 Blob 存储的工作方式或其使用的查询字符串参数。您必须从您正在使用的社交网络更改您正在使用的参数。或者对从社交网络接收到的查询字符串内容进行编码,或者将其从查询字符串中完全删除并将其移动到其他地方(到其他商店)。或者也许还有其他解决方案。但底线是:您无法更改 Azure Blob 存储来忽略 sig 等参数。

关于azure - 从 Azure Blob 存储中的任何身份验证检查中排除 sig querystring 参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30311989/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com