你怎么只让授权用户有存储在Amazon的S3的访问内容是什么? [英] How do you let only authorized user have access contents stored in Amazon's S3?

查看:369
本文介绍了你怎么只让授权用户有存储在Amazon的S3的访问内容是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在你的内容存储在S3中,并使其公开,那么每个人都可以访问它。有没有办法让只有授权用户才能访问存储在S3中的内容?例如,我有一个让人们存储他们的文档的网站。服务器存储在S3和我这些文件将只喜欢谁上传的文件能够访问它的用户。

Once you stored contents in S3 and make it public, then everyone have access to it. Is there a way to let only authorized users have access to the content stored in S3? For example, I have a site that let people store their documents. The server stores these documents in S3 and I would like only the user who uploaded the document to have access to it.

我知道我可以S3的内容复制到我的服务器,并让只有授权用户才可以访问,但是这将使得服务器速度慢。我希望能够服务器中的内容直接到客户端的从S3浏览器。

I know I can copy the S3 contents to my server and let only authorized users have access, but this will make the server slow. I would like to be able server the contents directly to the client's browser from the S3.

感谢。

推荐答案

您想读所谓的查询字符串请求验证另类的部分中找到<一href="http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html#RESTAuthenticationQueryStringAuth"相对=nofollow>这里

You want to read the section called 'Query String Request Authentication Alternative' found here

它说明了如何创建一个基于时间的过期链接到S3对象

It explains how to create a time-based expiring link to an S3 object

您将不得不写code,管理的用户(谁拥有它反对你的问题的一部分)。

You would then have to write the code that manages the users (the who owns which object part of your question).

这篇关于你怎么只让授权用户有存储在Amazon的S3的访问内容是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆