我正在尝试实现对Firebase Firestore的基于角色的访问,但是尽管我看过Googles做得很好的文档,我还是不能让它工作。我在每个用户文档中都设置了一个字符串"role“。我访问users集合的规则如下所示,写入规则一定是错误的: service cloud.firestore {
match /databases/{database}/documents {XCode-控制台错
目前,我有一个GCP/Firestore函数编写到Firestore。和一个NuxtJS客户端读取从所说的修复DB。
我的NuxtJS客户端不使用基于用户的身份验证。这是一个显示公开信息的新闻网站。我正在尝试配置Firestore安全规则,使其只允许从具有此Firebase项目活动服务帐户的应用程序中读取/写入/更新。目前,我的客户端出现了一个错误,上面写着FirebaseError: Missing or insufficient pe
当我试图写到Firestore时,我收到了一个错误。 match /databases/{database}/documents {
match /messages/{document=**数据库中有数据,那么读取规则就能正常工作--但是当我尝试写时,我得到:Error: Missing or insufficient per
我很难理解一些Firestore安全概念。我想要基于request.path属性设置规则。我的原则是: match /databases/{database}/documents {
match /{document=**} {我知道我的登录是正确的,如果我用allow read,write: if true;打开安全性,我知道查询可以工作,那么我在