Flutter - Role-based authorization with Firestore

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

ความคิดเห็น • 45

  • @mausamrayamajhi
    @mausamrayamajhi 5 ปีที่แล้ว +5

    how to set custome claims in flutter to handle without 'admin' field in firestore ?

  • @MsSplashIt
    @MsSplashIt 6 ปีที่แล้ว +8

    you only push the user based role to 1 page. how would you do if for several pages?

    • @rajayogan8884
      @rajayogan8884  4 ปีที่แล้ว

      use providers and simply 'provide' the data wherever it's needed. (Or you could pass the data around in the traditional way using copy constructors)

  • @workoholic-s2d
    @workoholic-s2d 3 หลายเดือนก่อน

    error facing as :
    Failed to sign in : The supplied auth credential is incorrect, malformed or has expired .
    why that so ?
    plzzzzzz reply.

  • @kavichhatiyawala3723
    @kavichhatiyawala3723 4 ปีที่แล้ว +1

    Hey Raja,
    I want to directly send user to a Admin page or User Page as per the role. I don't want to use Navigator.push which make back button to send user. is there any way to do that?

  • @EddyChungCom
    @EddyChungCom 6 ปีที่แล้ว +4

    Love the intro haha reminds me of Peter Mckinnon :)

    • @rajayogan8884
      @rajayogan8884  6 ปีที่แล้ว

      Oh yeah., I used to watch his videos till january.. :)

  • @don6101
    @don6101 6 ปีที่แล้ว +2

    Hi Raja, If i may ask, in my code i have admin and user as you did that but for me my admin add projects on the firebase database, and i want the user to access those projects only if him/her was assigned to that project. so the whole idea of projects is like this..... an admin has to select a user(via email) to assign the project to the user, how do i go about that? thanks in advance

    • @restaurantrecipebyhafsa
      @restaurantrecipebyhafsa ปีที่แล้ว

      have you implemented that logic.. if yes kindly describe it I need it for my projects. Thanks

  • @urdupuzzle9438
    @urdupuzzle9438 4 ปีที่แล้ว

    In my app, there is an Auditorium booking system, VC Appointment System, and Cafe Details
    .
    Now the above three system handle by three different users means when someone wants to meet VC he can request to the VC Personal assistant that I want an appointment the assistant send a message to the user that your appointment is fixed. Similarly, for Auditorium booking and the Cafe manager add the items so the user can see the items and price of food now I want to show auditorium admin to his page and for VC admin and cafe manager so how would I do that.

  • @ZeninDos
    @ZeninDos 4 ปีที่แล้ว

    Very good explanation! Keep up the vids man

  • @trist8494
    @trist8494 5 หลายเดือนก่อน

    bro can you please add a video on microsoft login with roled based auth

  • @SuperTecnoandroide
    @SuperTecnoandroide 5 ปีที่แล้ว +2

    I Love Yours Videos!!

    • @rajayogan8884
      @rajayogan8884  5 ปีที่แล้ว

      Nice.. :) Thanks.. Subscribe and have a nice day..

  • @skilllearn904
    @skilllearn904 2 ปีที่แล้ว +1

    thanks for the amazing video can you make this rolebased auth in react native thank you

  • @tanishkkalaskar3986
    @tanishkkalaskar3986 3 ปีที่แล้ว

    I am getting an error called asynchronous suspension after clicking on Admin page button.I wrote exact code as shown in tutorial .. Plz reply if anyone knows the ans

  • @villadseskesen
    @villadseskesen 3 ปีที่แล้ว

    Source code?
    Also how do you get all the users to be in the collection /users. that's not an automatic process process i believe

    • @chadhafezai4617
      @chadhafezai4617 3 ปีที่แล้ว

      you create a function save user in ur services/database.dart then you call it in ur sign up ui precisely in the submit button.

  • @harysuryanto
    @harysuryanto 2 ปีที่แล้ว

    Thank you for this video!

  • @devarshsoni76
    @devarshsoni76 5 ปีที่แล้ว +3

    Itni mehnat ki aur karwai,
    Ak baar run krke bhi dikha deta..!

  • @dhruvpatel9752
    @dhruvpatel9752 4 ปีที่แล้ว +1

    Doesn't work for me. Even i followed your tutorial, access is granted to all the users

    • @rajayogan8884
      @rajayogan8884  4 ปีที่แล้ว

      This is a old video.. i have an updated version of this video.. I'll edit and upload that in the next few days

    • @anirudhachakrabarty2050
      @anirudhachakrabarty2050 4 ปีที่แล้ว

      @@rajayogan8884 please upload the updated version of this video..it will help me a lot.. Thank u sir

    • @berkaycapar
      @berkaycapar 4 ปีที่แล้ว

      @@rajayogan8884 Raja, are you there?

    • @rajayogan8884
      @rajayogan8884  4 ปีที่แล้ว +1

      @@berkaycapar Yeah.. sup bro ?

    • @berkaycapar
      @berkaycapar 4 ปีที่แล้ว

      @@rajayogan8884 We were worried that you didn't post videos for a long time. Are you okay?

  • @gilmcglory3748
    @gilmcglory3748 6 ปีที่แล้ว

    Good job and thanks so much.

  • @samuelmarndi
    @samuelmarndi 4 ปีที่แล้ว

    video request: Firebase Admin SDK with custom claims for flutter

    • @rajayogan8884
      @rajayogan8884  4 ปีที่แล้ว

      custom claims ?

    • @samuelmarndi
      @samuelmarndi 4 ปีที่แล้ว

      @@rajayogan8884 it's called Firebase auth custom token. To give custom user roles to user id/email.

    • @rajayogan8884
      @rajayogan8884  4 ปีที่แล้ว +1

      @@samuelmarndi Oh yeah.. I remember.. I haven't actually tried that.. That woz under Firebase admin sdk.. I'll probably make a video on that later on..

  • @sagarshende309
    @sagarshende309 5 ปีที่แล้ว +3

    I KNow that Ur Not Going to My Reply But Still
    My Question How can Authorized Role Based AUthentication
    By Sign In Not By Firestore But at the TIme Of Firebase Login
    Thanks for Tutorial :-)

  • @aakashraza2672
    @aakashraza2672 2 ปีที่แล้ว

    FirebaseAuth.instance.currentUser!.then; then isn't defined kindly help

    • @demahomdemha5078
      @demahomdemha5078 2 ปีที่แล้ว

      hello , seems the video is an old version, am also stuck ,have you found a solution?

  • @CodeRytr
    @CodeRytr ปีที่แล้ว

    Are you fan of Peter makenin😂

  • @pradeepmax1
    @pradeepmax1 6 ปีที่แล้ว

    Thanks

  • @snipe3045
    @snipe3045 6 ปีที่แล้ว

    I will like to discuss something with I sent you my email in your website ask me part

  • @snipe3045
    @snipe3045 6 ปีที่แล้ว

    I sent you a message on ur website can you her back to me