Phototobucket oAuth 问题

发布于 2024-12-20 14:10:07 字数 813 浏览 2 评论 0原文

似乎很多人在让 oAuth 与 Photobucket 一起使用时遇到问题,现在我是其中之一,我不断收到:

"Authentication failed signature check failed"

当尝试获取请求令牌时,这是我发送的标头信息:

OAuth realm=""
oauth_consumer_key="XXXXXXXXX"
oauth_signature_method="HMAC-SHA1"
oauth_signature="BHHJ4o7zXOlfln4Xpik5rPtjZv8%3D"
oauth_timestamp="1323470655"
oauth_nonce="2FEC3150-8AB9-4BBC-BC4B-FA5AE7EC8046"
oauth_version="1.0"

并且我的 BASE 字符串用于生成签名:

POST&http%3A%2F%2Fapi.photobucket.com%2Flogin%2Frequest&format%3Djson%26oauth_consumer_key%3DXXXXXXXXX%26oauth_nonce%3D2FEC3150-8AB9-4BBC-BC4B-FA5AE7EC8046%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1323470655%26oauth_version%3D1.0

一切似乎都在向上,向上,我正在使用与我在其他几个照片/视频共享网站上使用的相同的库,没有任何问题,这是在 iOS 上......

谢谢

Seems like a lot of people have problems getting oAuth to work with Photobucket and now I'm one of them, I keep getting:

"Authentication failed signature check failed"

When trying to get a request token, here is the header info I send along:

OAuth realm=""
oauth_consumer_key="XXXXXXXXX"
oauth_signature_method="HMAC-SHA1"
oauth_signature="BHHJ4o7zXOlfln4Xpik5rPtjZv8%3D"
oauth_timestamp="1323470655"
oauth_nonce="2FEC3150-8AB9-4BBC-BC4B-FA5AE7EC8046"
oauth_version="1.0"

and my BASE string used to generate the signature:

POST&http%3A%2F%2Fapi.photobucket.com%2Flogin%2Frequest&format%3Djson%26oauth_consumer_key%3DXXXXXXXXX%26oauth_nonce%3D2FEC3150-8AB9-4BBC-BC4B-FA5AE7EC8046%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1323470655%26oauth_version%3D1.0

Everything seems on the up and up and I'm using the same library that I've been using for several other photo/video sharing sites with no problems, this is on iOS...

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

隔纱相望 2024-12-27 14:10:07

事实证明,即使 photobucket 导致您的请求有时转到 api####.photobucket.com (您的特殊负载平衡 URL),您仍然必须将您的基本字符串指定为 api.photobucket.com,这没有意义,并且 完全破坏 oAuth,因为您现在将基本字符串设置为与发出请求的网址不同的网址:p

因此,请保持警惕并始终确保您的基本字符串是api.photobucket.com

叹息

Turns out that even though photobucket causes your requests to sometimes go to api####.photobucket.com (your special load balancing URL) you still have to specify your base string as api.photobucket.com which makes no sense and TOTALLY BREAKS oAuth since you're now setting your base string to a different url than where you're making the request :p

So, be vigilant and always make sure your base string is api.photobucket.com

sigh

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文