简体   繁体   English

为每个经过身份验证的新用户创建新的 Firebase 数据库存储

[英]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.

相关问题 Firebase存储:允许经过身份验证的用户下载文件 - Firebase storage: Allow authenticated users to download files Morphia:为每个数据库创建新的Morphia实例吗? - Morphia: Create new Morphia instance for each database? Firebase复制存储上的新上传内容 - Firebase Duplicates New Uploads On Storage 如何使用 Android 在 Firebase 实时数据库中检索经过身份验证的用户的用户数据 - How to retrieve user data of authenticated users in Firebase Realtime Database with Android Firebase - 当存储给某些用户的新数据在数据库中有特定数据时发送通知 - Firebase - send notification when new new data stored to some users have specific data on database 每当我添加到数据库时如何创建新文件到文件系统 - How to create new file to filesystem each time i add to database 每当在Firebase中创建新用户时,是否可以创建一个新的Firestore数据库? - Is it possible to create a new Firestore database every time a new user is created in Firebase? Firebase 身份验证控制台未显示添加的新用户 - Firebase Authentication console is not showing new users added Android无法在外部存储上创建新目录 - Android unable to create new directory on external storage 如何在Firebase数据库中修改所有已认证用户的数据 - How do you modify a data of all authenticated users at a go in firebase database
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM