如何为云中的每个用户分配存储空间

时间:2015-12-11 11:27:39

标签: android google-app-engine cloud

在开发以云为后端的Android应用程序(比如AppEngine)时,如何为每个单独的用户分配存储空间?

因为,存储在云中的所有数据都可以访问所有。

如何管理数据授权?

1 个答案:

答案 0 :(得分:1)

When developing an Android application you wouldn't usually access storage directly from the application. You can use cloud endpoints to send and receive information from the user to your backend, and it would be your backend the one with permission to access the storage.

There you can choose what information has the user access to. For example you could create a folder on a bucket for each user.

Here you can look at some information related to putting authorization on your cloud endpoints:

https://cloud.google.com/appengine/docs/python/endpoints/auth