我正在尝试实现对Firebase Firestore的基于角色的访问,但是尽管我看过Googles做得很好的文档,我还是不能让它工作。我在每个用户文档中都设置了一个字符串"role“。文档本身具有用户的uid。我访问users集合的规则如下所示,写入规则一定是错误的: service cloud.firestore {
match /databases
使用creds = Rails.application.credentials.firestore
Google::Cloud::Firestore.configure do |configIf I allow read/write on all documents, firestore returns the documents fine... so it's a firestore rulesSo, how do I authenticate a user using fir