How to add Google Login (OAuth Credentials) to your website

Поділитися
Вставка
  • Опубліковано 9 лют 2025
  • In this video I will implement google authentication in a nodejs website. For that we will be using oauth 2.0 and the passport library to implement federated authentication with google. We will create oauth credentials and use those in our nodejs application to enable signing in over google to any website. You could use this to for example enable google login to your react website.
    If you want to learn more about Python, code awesome projects, learn more about data and algorithms check out noveltechmedia...
    NovelTech Media Python Course:
    🚨 noveltech-medi... 🚨
    Github Repository from Video:
    github.com/ove...
    If you want to learn how to become a great Software Engineer, Advance your Career, Learn Everything from Python to AWS head over to
    🚨 noveltechmedia... 🚨
    For any thoughts, ideas, feedback or questions contact me at 🚨 contact@noveltechmedia.com 🚨
    Disclaimer:
    All videos are for educational purposes and use them wisely. Any video might have inaccurate or outdated information. I give my best to research every topic thoroughly but please be aware that videos can contain mistakes.

КОМЕНТАРІ • 33

  • @andrekostenko1773
    @andrekostenko1773 5 місяців тому +1

    Very useful not overly simplified.

  • @christophealexandre1538
    @christophealexandre1538 Рік тому +2

    Very useful, thank you! Straight to the point.

  • @RaulVillalobos
    @RaulVillalobos 2 роки тому +9

    Nice video! This is a little advanced for me 😅

  • @SlothHuntOnYou
    @SlothHuntOnYou Рік тому +1

    it's possible to bring google oauth - in "google site" constructor?

  • @frontend_ko
    @frontend_ko 11 місяців тому

    this is for node & passport

  • @donmckenz
    @donmckenz 6 місяців тому

    Can u help us with a tutorial to add login to your blogger website

  • @elibely
    @elibely 2 роки тому +13

    very complicated! people should not mix things up while teaching

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

    Should the npm app run on a different port than the ngrok http command?

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

      No, because ngrock translates your local 'black' IP into global 'white, so if your npm or any other app is on port 8000, your ngrock must be on 8000 too.

    • @fearlessvegetarian
      @fearlessvegetarian Рік тому +1

      should be able to use localhost without needing ngrok, not sure if it is something new added or google now supports it

    • @veganphilosopher1975
      @veganphilosopher1975 Рік тому +1

      @@fearlessvegetarian cool channel btw new sub!

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

      @@veganphilosopher1975 thanks a lot for the sub

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

    nice tutorial

  • @markg.3171
    @markg.3171 Рік тому

    But it asks me to provide info about the app firstly. What is this?

  • @fearlessvegetarian
    @fearlessvegetarian Рік тому +1

    Let me know if anyone is stuck was able to get the code to work with few changes.

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

      Everytime I try to create a project it's asking me for an organization like I can create an organization but it would be so much easier if I did not need to. Is that possible or do I need to create an organization?

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

      @@ulfinawakjira1977 which part is it asking that ?

    • @MickeyMousePark
      @MickeyMousePark 9 місяців тому

      all i need is example code for after the person is loged in successfully ..i need to retrieve their email address...

    • @fearlessvegetarian
      @fearlessvegetarian 9 місяців тому

      @@MickeyMousePark been a long time but I can share the code I have

  • @resonance51
    @resonance51 10 місяців тому

    What's a O auth it's zero auth

    • @elitecarlson
      @elitecarlson 7 місяців тому

      It's not zero auth it's Oauth

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

    wow

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

    Hi bro, instead of localhost, i want to run the sign in with google all over my LAN network. But sign in with google doesn't work when I try to enter IP address of my host machine and run the application. Is there any solution for it. IP changes dynamically, so i need a solution in such a way, I don't need to add IP address in javascript orgin frequently. I run my application in tomcat.

  • @unblockabl
    @unblockabl Рік тому +1

    PLESAE help! I have copied EVERYTHING exactly from the github, but i get this: `Cannot GET /auth/google`

  • @garettclement6671
    @garettclement6671 Рік тому +2

    Good content, poor teaching

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

    are u from indea ?
    plz be real

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

      @@r0o0di. because he helped me well🤙🏻

    • @LavishKamboj01
      @LavishKamboj01 7 місяців тому

      no he is not