如何通过 GAE 在 webapp 用户之间共享数据?
我在 GAE 上部署了一个 Web 应用程序,用户可以使用 OpenID 登录。用户登录后,他们可以访问数据存储以获取自己的数据。
现在,如果我想建立一个“共享数据空间”,我该如何实现这样的事情呢?我可以授予用户 A 访问用户 B 数据的权限吗?我们共享实体?如何克服访问限制?
在这方面的任何帮助将不胜感激。
编辑 1
不完全是 BigTable 专家。我不是在寻找神奇王国的解决方案,只是寻找如何解决这个问题的指针(博客、文章、教程等)。
但如果我做对了,任何有权访问应用程序的人都可以访问数据(如果访问控制可用)。因此,如果我将用户 A 的 {KEY,实体} 对提供给用户 B,他将能够访问它,没有问题吗?
也许我只是混淆了概念......
I have a webapp deployed on GAE and users can sign-in using OpenID. Once users are signed-in they can access the data store for their own data.
Now, if I want to establish a "shared data space", how can I achieve such a thing? Can I give access to user A to data from user B? We share entities? How can I overcome access restrictions?
Any help on this aspect will be greatly appreciated.
EDIT 1
Not quite the BigTable expert. I'm not looking for magical kingdom solution, just pointer on how to tackle this problem (blog, article, tutorial, etc).
But if I get it right, data is accessible by anyone with access to the application (if access control is available). So if I give the a {KEY, entity} pair to user B from user A he will be able to access it no problem?
Maybe I'm just confusing concepts...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GAE 数据存储是一个数据库。其中存储的数据绝不限于单个用户。顺便说一句,您甚至无需登录即可使用 GAE 应用程序。只要查询你想要的数据,你就会得到它,无论当前用户还是其他任何人存储它都无关紧要。
The GAE datastore is a database. Data stored in it is in no way restricted to a single user. BTW, you don't even have to sign in to use a GAE application. Just query for the data you want, and you'll get it, whether the current user stored it or anyone else is irrelevant.