File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
firestore/testapp/Assets/Firebase/Sample/Firestore Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1706,6 +1706,23 @@ Task TestSnapshotMetadataEqualsAndGetHashCode() {
1706
1706
} ) ;
1707
1707
}
1708
1708
1709
+ /*
1710
+ Anonymous authentication must be enabled for TestAuthIntegration to pass.
1711
+
1712
+ Also, the following security rules are required for TestAuthIntegrationt to pass:
1713
+
1714
+ rules_version='2'
1715
+ service cloud.firestore {
1716
+ match /databases/{database}/documents {
1717
+ match /{somePath=**}/{collection}/{document} {
1718
+ allow read, write: if collection != 'private';
1719
+ }
1720
+ match /private/{document=**} {
1721
+ allow read, write: if request.auth != null;
1722
+ }
1723
+ }
1724
+ }
1725
+ */
1709
1726
Task TestAuthIntegration ( ) {
1710
1727
return Async ( ( ) => {
1711
1728
var firebaseAuth = Firebase . Auth . FirebaseAuth . DefaultInstance ;
You can’t perform that action at this time.
0 commit comments