Firebase Functions Authentication - The Diligent Dev

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

КОМЕНТАРІ • 57

  • @danialbakhsheshi9064
    @danialbakhsheshi9064 3 роки тому +3

    Dude you are so good! well done! clean quick explanation! just what I needed! quick easy set up no random craps! well done! keep up the good work!

  • @chimaobiwogu3361
    @chimaobiwogu3361 3 місяці тому

    Just what I needed. Thank you

  • @nahausDE
    @nahausDE Рік тому

    wow awesome! I was searching for auth to use within my API in firebase cloud functions! thank you

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

    THANK YOU, you saved me hours of pain in decoding JWTs!

  • @sanujamethmal9188
    @sanujamethmal9188 3 роки тому +1

    your videos solved my months.

  • @kauePBD
    @kauePBD 3 роки тому +3

    Your videos just saved my week!

  • @Jota.script
    @Jota.script 5 місяців тому

    Great tutorial, thank you very much!
    Greetings from Brazil!

  • @buckyass490
    @buckyass490 3 роки тому +2

    Sir, You are awesome! You saved me from a big struggle. Thank you so much ^_^ I would like to see more videos about Firebase and api's from you. Please keep up the good work!

  • @MohammedAbdulHaiZahid
    @MohammedAbdulHaiZahid 3 роки тому +2

    Totally spot on. Best tutorial on the topic. Thanks for such a great tutorial. Looking forward to seeing more firebase videos. Thanks

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

      Thank you! Glad you got value out of it. I’ll keep them coming.

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

    Thank you for your video, I am one of the person waiting for this. Waiting for new videos in firebase.✊🏻

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

      Awesome! I’ll be doing one on data validation next.

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

      Diligent Dev I will be waiting for that

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

      @@DiligentDev Please more firebase content with Vue/Nuxt!

  • @jadida2288
    @jadida2288 Рік тому

    very well explained

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

    tq so much for a great explanation.

  • @galinamiteva4373
    @galinamiteva4373 3 роки тому +1

    Tank you !!! Best !

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

    Great tutorial... . will try all this out soon. One request -- Please use bigger fonts or zoom in a bit to the relevant place. Some of us are old.

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

      Thank you! In my newer videos, I now zoom in on the code.

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

    Great tutorial, really helped me a lot understanding Cloud functions better, thanks!

    • @0805bryan
      @0805bryan 2 роки тому

      Please help me.I got a question. how can I get the login userID in index.js?

  • @0805bryan
    @0805bryan 2 роки тому +1

    Thank you.I got a question. how can I get the login userID in index.js?

  • @aliozeir708
    @aliozeir708 2 роки тому +1

    Thank you man, great tutorial, very brief and useful. keep it up

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

    it doesn't work. It shows unauthorized even when I add the token in postman request

  • @michaelkas
    @michaelkas 3 роки тому +1

    Dude, God bless you.. man

  • @david1970qdr
    @david1970qdr 3 роки тому +1

    Hey, really good explanation!!! Thank your very much!!

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

    Thanks. It was helpful

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

    Loving these firebase vids. I got a use case that I am trying to figure out: How to leverage cloud functions to send an email when inappropriate content has been posted by a user? For example, when a user posts a comment and uses vulgar language, what's the best way to leverage Firebase (I am using FireStore) to notifiy me that there is in appropriate content? Just an idea for a future video!

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

      I would create a cloud function for the save and before you do save it, check it for vulgar words. If it contains a bad word, send the email notification. This would be a good start for your list:github.com/RobertJGabriel/Google-profanity-words/blob/master/list.txt

  • @antonioislasromero5539
    @antonioislasromero5539 3 роки тому +1

    que buen tutorial muachas gracias

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

    great video! loved it :)

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

    exactly what i needed! thanks!

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

      You’re welcome! Glad it helped

  • @SandeepKumar-wq1hf
    @SandeepKumar-wq1hf 4 роки тому

    Another great tutorial on firebase .Keep it up please !

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

      Thank you! I’ll keep them coming.

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

    hi, great tutorial, i have a question:
    how can i restrict the Endpoint preventing User A from accessing User B data?

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

    How we can test this middleware on firebase emulator as for this purpose we require a sign-in user

  • @musicalbox2008
    @musicalbox2008 2 роки тому +1

    Thanks a lot for a great tutorial!
    I like that you are explaining this in a framework-agnostic way. So, when you inserted the API_KEY into Postman, it seemed that you are simulating how a client would send the request to SignUp a user or SignIn a user. However, I thought that we should not ship the API_KEY with our client code?
    I am asking this because I am interested in writing a CLI (either in Node.js or Ruby) that would authenticate the user to Firebase. Initially, I used the same method as you (putting the API_KEY in the code) but I realized that this is not recommended. So how do you suggest to achieve this from a CLI?

    • @rainagaoka
      @rainagaoka Рік тому

      do you have any answer? thanks

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

    How to use firestore database in this cloud function?
    I don't know how to import ?

  • @RajivKumar-dw2th
    @RajivKumar-dw2th 4 роки тому

    Awesome sir, it help me, thanks

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

    i am getting this error Route.post() requires a callback function but got a [object Undefined]

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

    Great video. But it's not clear for me how to make that authentificated user could get only his own data from the db. For example - his own array of todos or smth, not the whole todos collection from firestore

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

      Inside of the auth middleware file, on line 32, you'll see something that says req.user = decodedTokenId. Then in your firebase function, you can grab that user's id by calling req.user.uid. Use that ID to query your collection or grab a subcollection off of the user.
      FYI, I have not tested this, but it should work or get you close.

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

    Nice job! I have been following this tutorial and I would like to know how to generate and add the jwt authentication token bearer to my node.js function folder

  • @sangtan6430
    @sangtan6430 Рік тому

    thank for this video, but how about authentication using phone number, I mean my server code using .net core and use firebase phone number authentication. I still dont know how to do, can you explain or give me key word. thank you again.

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

    Great stuff, this has been so helpful! I was wondering if you can give me some pointers as to how I can combine this with creating my own Oauth2 flow. What I'd like to do is to allow my users to use 3rd party apps to access my endpoint after successfully authenticating themselves. Any tips? Thanks!

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

    I understand why it is that you made this tutorial agnostic and it is very helpful. Quick question though. How do I generate a bearer token without first posting/creating a new user? Because as it stands (and correct me if i'm wrong) I cannot GET the users from my firebase collection by simply using the "us-central1-projectname.cloudfunctions.net/user" until I first have a bearer token yet I don't know how to generate one on my own... Any input helps here :)

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

      Never mind, I ended up answering my own question.

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

      Sorry, been super busy and havent kept up with UA-cam. Hopefully you just applied the middleware to the functions you'd like to protect :).

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

      For sure. You answered the question I had in the video. I just had to give it another listen. Thanks again for a great tutorial 👍🏽

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

    Can I use these functions without paying for a plan?

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

      You can if you downgrade to Node 8.

  • @RajivKumar-dw2th
    @RajivKumar-dw2th 4 роки тому

    Can u also make a video on this accounts:signInWithIdp

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

      Are you referring to this? cloud.google.com/identity-platform/docs/multi-tenancy-authentication

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

    Gracias amigo, me sirvió micho.
    aquí dejo la nueva solución en NODE 14
    app.use(authMiddleware.validateFireabseIdToken);