Security Rules for Firestore - Firebase Firestore

Поділитися
Вставка
  • Опубліковано 15 вер 2024

КОМЕНТАРІ • 32

  • @ImTheDot
    @ImTheDot 10 місяців тому +1

    Awesome. Very simple and straight to the point.

  • @Berk45632
    @Berk45632 4 роки тому +5

    This is a very detailed tutorial dedicated especially to explain the firestore rules. Very unique tutorial. Keep growing!

    • @PhilippLackner
      @PhilippLackner  4 роки тому +1

      Thanks a lot man, I appreciate that feedback!

  • @Jcmacielh
    @Jcmacielh 4 роки тому +2

    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!

    • @PhilippLackner
      @PhilippLackner  4 роки тому +1

      Thanks, you're welcome! 👍

    • @need5868
      @need5868 4 роки тому

      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

    • @PhilippLackner
      @PhilippLackner  4 роки тому

      @@need5868 I don't recommend to use realtime database

  • @TheJou1993
    @TheJou1993 3 роки тому

    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

  • @rolinejohnaguilar7819
    @rolinejohnaguilar7819 4 роки тому +1

    Woah, you really know many things you always amaze me with these stuffs. Learn a lot from this series again. Thank you Phil!

  • @panosgr7228
    @panosgr7228 4 роки тому

    Really helpful and simple introduction to firebase rules. Thanks for the content!

  • @rlux70
    @rlux70 3 роки тому

    Great explanations. Thank you.

  • @r.r221
    @r.r221 4 роки тому +1

    Well explained👌🏼 thank you

  • @mehulbisht9708
    @mehulbisht9708 4 роки тому +3

    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" 😂😂

    • @PhilippLackner
      @PhilippLackner  4 роки тому +4

      Always love when people notice my little eastereggs in the videos 🥰

  • @kensleylewis
    @kensleylewis 2 роки тому

    how do we add comment tags to this rules panel so that we can add training notes?

  • @soroushlotfi6970
    @soroushlotfi6970 4 роки тому +1

    Thank you

  • @kensleylewis
    @kensleylewis 2 роки тому

    How do we apply 2 conditions, (example - allow read : if (a) and (b);

  • @undefinedbug1.0
    @undefinedbug1.0 Рік тому

    OMG wow

  • @Berk45632
    @Berk45632 4 роки тому +1

    What is difference between resource.data and request.resource.data?

    • @PhilippLackner
      @PhilippLackner  4 роки тому +5

      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

    • @Berk45632
      @Berk45632 4 роки тому +1

      Understood. Thanks alot!

  • @PeterSotosEPT
    @PeterSotosEPT 4 роки тому

    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!

    • @PhilippLackner
      @PhilippLackner  4 роки тому +1

      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

  • @r.r221
    @r.r221 4 роки тому

    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?

    • @PhilippLackner
      @PhilippLackner  4 роки тому

      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

  • @need5868
    @need5868 4 роки тому

    hello, I want contact you for something please

  • @kingfisher3791
    @kingfisher3791 4 роки тому

    I can't understand at 10:01 time,,pls help me to understand bro

    • @VivekSharma-qw5ky
      @VivekSharma-qw5ky 4 роки тому

      If we request to change the type to secret , we are allowed; else not allowed to write