[英]Create New Firebase Database storage for each new authenticated users
Am creating a firebase bank android app where users can authenticate and create account.我正在创建一个 firebase 银行 android 应用程序,用户可以在其中进行身份验证和创建帐户。 It's having a Firebase RecyclerView which shows lists of bank transactions in linear layouts in one of my children fragment.它有一个 Firebase RecyclerView,它在我的一个孩子片段中以线性布局显示银行交易列表。 Please is there any way i can allow newly authenticated users to create a Firebase Database and storage automatically so that whenever a user (CRUD) Create, Read, Update, and Delete an item, it'll delete only from that user's Firebase Database RecyclerView lists then list will refresh automatically for that specific user请问有什么方法可以让新认证的用户自动创建 Firebase 数据库和存储,以便每当用户(CRUD)创建、读取、更新和删除项目时,它只会从该用户的 Firebase 数据库 RecyclerView 列表中删除然后列表将为该特定用户自动刷新
You typically won't want to create an entire database for each user, but instead store the data in a way that it is segmented per user, and then sure access to it through Firebase's security rules.您通常不想为每个用户创建一个完整的数据库,而是以按用户分段的方式存储数据,然后确保通过 Firebase 的安全规则对其进行访问。
Same for file storage, you'll also want to segment the files per user there and use security rules to control access to the files.对于文件存储也是如此,您还需要在其中对每个用户的文件进行分段,并使用安全规则来控制对文件的访问。
A great starting point for learning more about this is in the Firebase documentation on security rules, under the section on how to secure data so that only the content-owner has access to it , which covers the structure and rules for Realtime Database, Cloud Storage, and Firestore.了解更多信息的一个很好的起点是 Firebase 文档中关于安全规则的部分,在如何保护数据以便只有内容所有者可以访问它的部分下,其中涵盖了实时数据库、云存储的结构和规则和 Firestore。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.