Secure OAuth 2.0 in Flask: Python User Authentication Guide

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

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

  • @codewithjoshoffical
    @codewithjoshoffical  7 หลายเดือนก่อน +4

    👉 Join my Python Newsletter Today! ~ thenerdnook.substack.com
    I'd love to do a special for 10k subscribers! Help me get there and drop a comment for "special" ideas that you guys might like! I'm hoping to hit 10k here with your help soon. 😁
    I hope you all have an amazing week
    ~ Josh

  • @A4O_TSL
    @A4O_TSL 7 หลายเดือนก่อน +5

    You aré one of the best Python youtubers Josh, greetings from Argentina!

    • @codewithjoshoffical
      @codewithjoshoffical  7 หลายเดือนก่อน

      Thank you for the kind words! I’m glad you’re enjoying my videos 😁

  • @Notepad123
    @Notepad123 7 หลายเดือนก่อน +2

    Awesome. I’m still going through your flask tutorial but will watch this next 🤝

  • @KashfiFahim
    @KashfiFahim 7 หลายเดือนก่อน +1

    Great choice in the opening background music, thanks again for another great topic and the implementation.

    • @codewithjoshoffical
      @codewithjoshoffical  7 หลายเดือนก่อน +1

      Thanks! I’ll switch it up here, try out other intros 😄

  • @allanp3na
    @allanp3na หลายเดือนก่อน +1

    hey Josh, im goin through the tutorial but im getting an error after trying to login with the new button,
    [2024-11-19 17:55:59,913] ERROR in with_database: Error during login:Missing "authorize_url" value
    127.0.0.1 - - [19/Nov/2024 17:55:59] "GET /login/google HTTP/1.1" 500 -
    do you have and idea?

    • @codewithjoshoffical
      @codewithjoshoffical  หลายเดือนก่อน +1

      Hmmm best guess from this side of things is I would check to make sure that authorize_url is set in your OAuth configuration.
      Another thing I will point out is make sure that everything on Google Cloud Console is setup too, check over the Redirect URI one more time
      Hope this helps 😁

  • @snowman8227
    @snowman8227 27 วันที่ผ่านมา +2

    Please make more good videos like this

    • @codewithjoshoffical
      @codewithjoshoffical  27 วันที่ผ่านมา

      More OAuth or more Flask?

    • @snowman8227
      @snowman8227 27 วันที่ผ่านมา

      @@codewithjoshoffical More Applications on Flask

  • @heitorreis4051
    @heitorreis4051 หลายเดือนก่อน +1

    Heyy thanks for you content! Can you help me with a question? I'm initializing my app in another .py file so I'm wondering if the variable "google = oauth.register()" is actually needed, cause I won't be able to import it to other files. Thanks again.

    • @codewithjoshoffical
      @codewithjoshoffical  หลายเดือนก่อน +1

      Hey there, thanks for being here and your comment!
      While you do not need the 'google' variable itself if you're doing it this way you still need to setup the configuration in your file.
      You still need to register it all with oauth.register during the point of set up.
      Hope this helps 😁

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

      It did! Thank you so much. Although I'm having trouble testing the google login and sign up, so problably using simple login and signup methods. Thanks anywayy

  • @KanwaljitSinghKhalsa
    @KanwaljitSinghKhalsa 5 วันที่ผ่านมา +1

    awesome !

  • @ultimatesound8515
    @ultimatesound8515 7 หลายเดือนก่อน +2

    Is Oauth only for google? Thanks for all the great content

    • @codewithjoshoffical
      @codewithjoshoffical  7 หลายเดือนก่อน

      Nope, you can use this with most major platforms. So like Google, LinkedIn, Facebook, etc.

  • @nowa77814
    @nowa77814 7 หลายเดือนก่อน +1

    Hey, Josh I just completed you python code for beginners and I can now write some basic python programs. What's your recommendation for the next python chapter should I learn.

    • @codewithjoshoffical
      @codewithjoshoffical  7 หลายเดือนก่อน

      Before tackling anything too big you want to reinforce what you’ve just learned.
      I recommend spending some time with game development (PyGame) or App development (PyQt).
      These are both great to ease into more advanced topics, I have courses on the channel for both of these!
      The world is your oyster 😁

  • @billionairehub_
    @billionairehub_ 2 หลายเดือนก่อน +1

    It worked!! Btw do you have one for Facebook login?

    • @codewithjoshoffical
      @codewithjoshoffical  2 หลายเดือนก่อน

      Yup! I used google but you can use OAuth with FB too, you should check out some of the documentation online 😄

  • @TheAdventureOfLife
    @TheAdventureOfLife 7 หลายเดือนก่อน +2

    You made this seem easy. Lol 😆

  • @Notepad123
    @Notepad123 3 หลายเดือนก่อน

    I'm getting an authorization error. I've looked around and tried different things but can't get a fix. Any advice?
    Access blocked: Authorization Error
    The OAuth client was not found.
    Error 401: invalid_client
    Request details: flowName=GeneralOAuthFlow

    • @codewithjoshoffical
      @codewithjoshoffical  3 หลายเดือนก่อน

      So hard to tell without more context but from the error it seems your configuration is off. Go to the Client Credentials section on Google Cloud and check the configuration along with your client id and secret. Also double the the URI that we created on the backend part of it.

    • @Notepad123
      @Notepad123 3 หลายเดือนก่อน

      @@codewithjoshoffical the issue ended up being a misspelling. I had GOOLGE_CLIENT_ID in my .env file lol🤦‍♂