3

I'm thinking about serving user-specific static content from S3 - the user needs to be authenticated in order to access his static content. So if user A has content c1, c2 and use B has c3, c4, only A should be able to access c1, c2 .

What's a good way to accomplish this? Is there a way to perform per-user / per file authentication in S3?

4

1 回答 1

1
  1. 您可以使用预先授权的网址
  2. a) 您可以使用 ACL 列表并让每个用户登录 b) 分发列表的 ACL 也可以工作

对于预签名的 URL,这里有一些关于它的想法http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1434

对于 ACL 文档,您应该查看http://docs.amazonwebservices.com/AmazonS3/latest/S3_ACLs.html

有一些图书馆可以为您做到这一点。这取决于您使用的是哪种语言。

于 2009-03-31T12:50:47.617 回答