I am making a WPF App and i'm using Firestore with this app. Problem is that when i write a new value to Firestore, it let me write although Firestore rules are set to 'false'. So Firestore rules are not working but i need them to work.
This is my C# code;
Dictionary<string, object> user = new Dictionary<string, object>
{
{ "text", "aaaa" },
};
await db.Collection("deneme").Document("doc").SetAsync(user);
and this is my Firestore Rules;
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if false;
}
}
}
I wanted to make some rules that let users write and get only their own Datas.
I'm new to C#
To fix this issue, i have used REST API