firebase-security

Firebase Rules with facebook Authentication and Unique IDs

馋奶兔 提交于 2020-12-06 12:10:01
问题 I'm looking for some advice or a possible solution with tightening up my firebase rules. This is my user tree in Firebase: users |_male |_uid |_female |_uid The UID will be an epoch timestamp when the account is created which will be a signed integer. These are the firebase rules which basically ensures the user has logged in and authenticated with Facebook before they can read or write to users: "users": { "male":{ ".indexOn": ["uid"] }, "female":{ ".indexOn": ["uid"] }, ".read": "auth !=

Firebase Rules with facebook Authentication and Unique IDs

半腔热情 提交于 2020-12-06 12:03:27
问题 I'm looking for some advice or a possible solution with tightening up my firebase rules. This is my user tree in Firebase: users |_male |_uid |_female |_uid The UID will be an epoch timestamp when the account is created which will be a signed integer. These are the firebase rules which basically ensures the user has logged in and authenticated with Facebook before they can read or write to users: "users": { "male":{ ".indexOn": ["uid"] }, "female":{ ".indexOn": ["uid"] }, ".read": "auth !=

Adding and “.indexOn”: “.value” into Firebase Rules

落花浮王杯 提交于 2020-12-01 02:33:43
问题 I'm studying AngularJS and Firebase and I'm playing with a simple ChatApp, just to understand the code. My Firebase DB structure is like this: "chat": { "messages": { "chat1": { [ list of messages ] }, "chat2": { [ list of messages ] } }, "rooms": { "chat1": { "users": { "user1": true, "user2": true } }, "chat2": { "users": { "user2": true, "user3": true } } } } Due to Firebase protection Rules I can't add chat link in the user node, than I necessary have to do a Firebase query to retrieve

Adding and “.indexOn”: “.value” into Firebase Rules

孤人 提交于 2020-12-01 02:33:39
问题 I'm studying AngularJS and Firebase and I'm playing with a simple ChatApp, just to understand the code. My Firebase DB structure is like this: "chat": { "messages": { "chat1": { [ list of messages ] }, "chat2": { [ list of messages ] } }, "rooms": { "chat1": { "users": { "user1": true, "user2": true } }, "chat2": { "users": { "user2": true, "user3": true } } } } Due to Firebase protection Rules I can't add chat link in the user node, than I necessary have to do a Firebase query to retrieve