filmov
tv
Flutter - Firebase Cloud Firestore, database, storage rules permission test ( allow only auth user )
![preview_player](https://i.ytimg.com/vi/cJ4MdHhE87Y/maxresdefault.jpg)
Показать описание
Please comment on any questions! If this movie helped you, please subscribe to my Youtube Channel, please :) 🙋🏻♂️
* Cloud FireStore rules example
- Only Authentication user can access
rules_version = '2';
match /databases/{database}/documents {
match /{document=**} {
}
}
}
- Allow all users
rules_version = '2';
match /databases/{database}/documents {
match /{document=**} {
allow read;
allow write;
}
}
}
- Block all users
rules_version = '2';
match /databases/{database}/documents {
match /{document=**} {
allow read: if false;
allow write: if false;
}
}
}
* Storage rules example
- Only Authentication user can access
rules_version = '2';
match /b/{bucket}/o {
match /{allPaths=**} {
}
}
}
- Allow all users
rules_version = '2';
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write;
}
}
}
- Block all users
rules_version = '2';
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write: if false;
}
}
}
* Develop environment.
- Flutter SDK Version: 1.12.13+hotfix.9
- Flutter: 45.1.1
- Dart: 192.7761
- Xcode Version: 11.4.1
- Android Studio: 3.6.2
- OS Version: MacOS Catalina 10.15.4
Thank you for watching :)
#Flutter, #MobileApp, #FirebaseRule
* Cloud FireStore rules example
- Only Authentication user can access
rules_version = '2';
match /databases/{database}/documents {
match /{document=**} {
}
}
}
- Allow all users
rules_version = '2';
match /databases/{database}/documents {
match /{document=**} {
allow read;
allow write;
}
}
}
- Block all users
rules_version = '2';
match /databases/{database}/documents {
match /{document=**} {
allow read: if false;
allow write: if false;
}
}
}
* Storage rules example
- Only Authentication user can access
rules_version = '2';
match /b/{bucket}/o {
match /{allPaths=**} {
}
}
}
- Allow all users
rules_version = '2';
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write;
}
}
}
- Block all users
rules_version = '2';
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write: if false;
}
}
}
* Develop environment.
- Flutter SDK Version: 1.12.13+hotfix.9
- Flutter: 45.1.1
- Dart: 192.7761
- Xcode Version: 11.4.1
- Android Studio: 3.6.2
- OS Version: MacOS Catalina 10.15.4
Thank you for watching :)
#Flutter, #MobileApp, #FirebaseRule
Комментарии