如何通过 GAE 在 webapp 用户之间共享数据?

发布于 2024-12-18 07:47:20 字数 386 浏览 3 评论 0原文

我在 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 技术交流群。

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

发布评论

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

评论(1

撕心裂肺的伤痛 2024-12-25 07:47:20

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.

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