Тёмный

Firebase Functions Authentication - The Diligent Dev 

Diligent Dev
Подписаться 4,1 тыс.
Просмотров 21 тыс.
50% 1

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 57   
@Jota.script
@Jota.script 4 месяца назад
Great tutorial, thank you very much! Greetings from Brazil!
@danialbakhsheshi9064
@danialbakhsheshi9064 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!
@sanujamethmal9188
@sanujamethmal9188 3 года назад
your videos solved my months.
@kauePBD
@kauePBD 3 года назад
Your videos just saved my week!
@chimaobiwogu3361
@chimaobiwogu3361 3 месяца назад
Just what I needed. Thank you
@missedme0063
@missedme0063 3 года назад
THANK YOU, you saved me hours of pain in decoding JWTs!
@MohammedAbdulHaiZahid
@MohammedAbdulHaiZahid 3 года назад
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 года назад
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 года назад
Diligent Dev I will be waiting for that
@1dosstx
@1dosstx 4 года назад
@@DiligentDev Please more firebase content with Vue/Nuxt!
@nahausDE
@nahausDE Год назад
wow awesome! I was searching for auth to use within my API in firebase cloud functions! thank you
@buckyass490
@buckyass490 3 года назад
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!
@aliozeir708
@aliozeir708 2 года назад
Thank you man, great tutorial, very brief and useful. keep it up
@alhaadiidb3354
@alhaadiidb3354 2 года назад
tq so much for a great explanation.
@jadida2288
@jadida2288 Год назад
very well explained
@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?
@michaelkas
@michaelkas 3 года назад
Dude, God bless you.. man
@david1970qdr
@david1970qdr 3 года назад
Hey, really good explanation!!! Thank your very much!!
@gaatutube
@gaatutube 3 года назад
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 3 года назад
Thank you! In my newer videos, I now zoom in on the code.
@galinamiteva4373
@galinamiteva4373 3 года назад
Tank you !!! Best !
@SandeepKumar-wq1hf
@SandeepKumar-wq1hf 4 года назад
Another great tutorial on firebase .Keep it up please !
@DiligentDev
@DiligentDev 4 года назад
Thank you! I’ll keep them coming.
@0805bryan
@0805bryan 2 года назад
Thank you.I got a question. how can I get the login userID in index.js?
@cleo0318
@cleo0318 4 года назад
exactly what i needed! thanks!
@DiligentDev
@DiligentDev 4 года назад
You’re welcome! Glad it helped
@adebolaoyenuga1299
@adebolaoyenuga1299 4 года назад
Thanks. It was helpful
@SirGoldenNugget
@SirGoldenNugget 3 года назад
great video! loved it :)
@antonioislasromero5539
@antonioislasromero5539 3 года назад
que buen tutorial muachas gracias
@RajivKumar-dw2th
@RajivKumar-dw2th 4 года назад
Awesome sir, it help me, thanks
@1dosstx
@1dosstx 4 года назад
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
@MACHETE912
@MACHETE912 3 года назад
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 3 года назад
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.
@rickvian
@rickvian 3 года назад
hi, great tutorial, i have a question: how can i restrict the Endpoint preventing User A from accessing User B data?
@Saravananmaharajan
@Saravananmaharajan 2 года назад
How to use firestore database in this cloud function? I don't know how to import ?
@musicalbox2008
@musicalbox2008 2 года назад
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
@mhamzamughal1771
@mhamzamughal1771 2 года назад
How we can test this middleware on firebase emulator as for this purpose we require a sign-in user
@diegoramirezguerrero1863
@diegoramirezguerrero1863 2 года назад
it doesn't work. It shows unauthorized even when I add the token in postman request
@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
@dipakraut9676
@dipakraut9676 3 года назад
i am getting this error Route.post() requires a callback function but got a [object Undefined]
@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!
@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.
@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 RU-vid. 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);
Далее
Firebase Functions - Data Validation
19:50
Просмотров 6 тыс.
🦊🔥
00:16
Просмотров 584 тыс.
Living life on the edge 😳 #wrc
00:17
Просмотров 2,8 млн
Server-side Firebase Authentication Using Express JS
22:02
JWT Authentication Tutorial - Node.js
27:36
Просмотров 1 млн
Your guide to server side authentication with Firebase
14:06
Hosting a REST API with a Cloud Firestore backend
19:21
🦊🔥
00:16
Просмотров 584 тыс.