You know the basics of Security Rules but would like to get into some more interesting topics such as querying other documents or limiting access to certain fields? You have come to the right place on this new episode of Firecasts by Todd Kerpelman and Rachel Myers!
Chapters:
0:00 Introduction and recap of unit testing security rules
1:20 Simple security and tests with Firebase Auth
4:08 Custom auth claims
8:59 Security based on user lists
14:09 Custom functions in security rules
15:20 Using the request.resource object
16:40 Adding required fields in new documents
18:45 Using let to create variables in security rules
19:25 Allowing only approved fields in new documents
21:53 Allowing users to only change certain fields
23:30 Debugging security rules
25:40 The mapDiff object
28:24 Summary
Resources:
Unit testing security rules with the Firebase Emulator Suite → https://goo.gle/3fxTawF
Security rules documentation → https://goo.gle/30mZ4Mx
Firecasts for Firebase Developers playlist → https://goo.gle/Firecasts
Subscribe to Firebase → https://goo.gle/Firebase
#Firecasts #Firebase #SecurityRules