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() {
17061706 } ) ;
17071707 }
17081708
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+ */
17091726 Task TestAuthIntegration ( ) {
17101727 return Async ( ( ) => {
17111728 var firebaseAuth = Firebase . Auth . FirebaseAuth . DefaultInstance ;
You can’t perform that action at this time.
0 commit comments