PHP /亚马逊S3:查询字符串认证亚马逊、字符串、PHP

2023-09-11 23:48:11 作者:吻痕

我一直在使用 Zend_Service_Amazon_S3 库访问Amazon S3,但一直无法找到任何与产生的安全访问的URL正确处理。

I have been using the Zend_Service_Amazon_S3 library to access Amazon S3, but have been unable to find anything that correctly deals with generating the secure access URLs.

我的问题是,我有存储在我的桶只能访问所有者的ACL权限多个对象。我需要能够创建URL,允许定时访问。然而,亚马逊S3 文档是很简单的问题。

My issue is that I have multiple objects stored in my bucket with an ACL permission of access to owner only. I need to be able to create URLs that allow timed access. However, the documentation for Amazon S3 is very brief on the subject.

可能有人阐述,或提供一个链接到一些解释我如何可能做到这一点在PHP?

Could someone elaborate, or provide a link to something that explains how I might achieve this in PHP?

推荐答案

位于验证REST请求部分与产生所需的URL签名交易。这将是实现一个PHP函数,可以生成这种类型的签名的一个简单的例子。

The documentation located in the authenticating REST requests section deals with generating the signature required for the URLs. It would be a simple case of implementing a PHP function that can generate this type of signature.