Studying the firebase rules documentation was on my to-do list for so long now, and I've been procrastinating so much on getting into it. Thank you so much for this great introductory tutorial!
Hello Sir, I am student and I want secure my realtime database, and storage, please help me to learn how to do this , If you want I can send you Paypal . thank you very mutch
concrats on this series ,i liked that you went straight to the point and not go 5 minutes on creating layout's , like this series ,i will make sure to follow you ,right now i can only like and subscribe
0:46 when you have already seen so many of Philip's videos after face reveal and you watch this old video which says "AndroidDevs is actually a girl" 😂😂
Resource.data is the data of the document you want to change and request.resource.data is the data of the changes. So if you have a document with a name="Peter" and want to change this value to "Steven" then Peter is resource.data and Steven is request.resource.data
at 9:03 you mention that you can check the user role, but this is not really correct. The resource variable that you mention is the document you want to read and not some custom user document. Its the request.auth variable that contains the user data, but I don't know of any capacity for it to contain a role field. Can you comment about how you might actually check for a role? I need to handle roles in my Firestore app. Thanks!
Yea I get your problem. You can do that by saving documents of users in firestore and setting the document id to the user id. Then you can check with the method I show at 11:39 if the corresponding user has a field that has a specific value. In my example I use germany, you would need to replace it with request.auth.uid
I have been receiving that my fring in X days,and I will not longer be able to access my firestore data unless I update the firestore rules! I followed your tutorial yesterday and updated my firestore rules but at midnight I also received the same email thst it will be expired in 1 day. I am not using firestoreIl in my application, I am only using realtime databsa! Will i be able to access my realtime database in case the firestore database expires?
Yes sure, that just means if an app has access to your database and you don't change your rules, the app won't have access. But once you change the rules, it will
Awesome. Very simple and straight to the point.
This is a very detailed tutorial dedicated especially to explain the firestore rules. Very unique tutorial. Keep growing!
Thanks a lot man, I appreciate that feedback!
Studying the firebase rules documentation was on my to-do list for so long now, and I've been procrastinating so much on getting into it. Thank you so much for this great introductory tutorial!
Thanks, you're welcome! 👍
Hello Sir, I am student and I want secure my realtime database, and storage, please help me to learn how to do this , If you want I can send you Paypal .
thank you very mutch
@@need5868 I don't recommend to use realtime database
concrats on this series ,i liked that you went straight to the point and not go 5 minutes on creating layout's ,
like this series ,i will make sure to follow you ,right now i can only like and subscribe
Woah, you really know many things you always amaze me with these stuffs. Learn a lot from this series again. Thank you Phil!
Thanks, you're welcome!
Really helpful and simple introduction to firebase rules. Thanks for the content!
You're welcome!
Great explanations. Thank you.
Well explained👌🏼 thank you
You're welcome!
0:46 when you have already seen so many of Philip's videos after face reveal and you watch this old video which says "AndroidDevs is actually a girl" 😂😂
Always love when people notice my little eastereggs in the videos 🥰
how do we add comment tags to this rules panel so that we can add training notes?
Thank you
You're welcome!
How do we apply 2 conditions, (example - allow read : if (a) and (b);
OMG wow
What is difference between resource.data and request.resource.data?
Resource.data is the data of the document you want to change and request.resource.data is the data of the changes. So if you have a document with a name="Peter" and want to change this value to "Steven" then Peter is resource.data and Steven is request.resource.data
Understood. Thanks alot!
at 9:03 you mention that you can check the user role, but this is not really correct. The resource variable that you mention is the document you want to read and not some custom user document. Its the request.auth variable that contains the user data, but I don't know of any capacity for it to contain a role field. Can you comment about how you might actually check for a role? I need to handle roles in my Firestore app. Thanks!
Yea I get your problem. You can do that by saving documents of users in firestore and setting the document id to the user id. Then you can check with the method I show at 11:39 if the corresponding user has a field that has a specific value. In my example I use germany, you would need to replace it with request.auth.uid
I have been receiving that my fring in X days,and I will not longer be able to access my firestore data unless I update the firestore rules! I followed your tutorial yesterday and updated my firestore rules but at midnight I also received the same email thst it will be expired in 1 day.
I am not using firestoreIl in my application, I am only using realtime databsa! Will i be able to access my realtime database in case the firestore database expires?
Yes sure, that just means if an app has access to your database and you don't change your rules, the app won't have access. But once you change the rules, it will
hello, I want contact you for something please
I can't understand at 10:01 time,,pls help me to understand bro
If we request to change the type to secret , we are allowed; else not allowed to write