Creating a Discord Login System in Python Flask

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.ค. 2021
  • In this video, I show you how you can create a Discord Oauth Login system in Flask (Python) using an open source library called Zenora.
    Zenora is a synchronous library for accessing the Discord REST API. It allows you to access the API without async/await. And also gives you REST-only API access, not the gateway. Pretty useful for making bot web dashboards, or desktop applications, etc. Oauth and other features will be added soon.
    😀SUBSCRIBE for more videos! / ahnafzamil
    ➤ My other YT: bit.ly/2RbkEBX
    ➤ My Discord Server: / discord
    Links
    =====
    Zenora: github.com/ahnaf-zamil/zenora
    Flask: github.com/pallets/flask
    Discord API docs: / discord
    Software Used
    ============
    Recording: OBS Studio
    Thumbnail: Gimp
    Editing: KdenLive
    Hope you enjoy this video, I am open to feedback. Please subscribe and like, it helps me out a lot!
    Anyways, have a good day ^-^
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @bencampbell-wilson6348
    @bencampbell-wilson6348 2 ปีที่แล้ว +11

    It's mad how helpful this really is. Thanks for the amazing library. I saw in a comment you said you'd become fed up with the discord API, and I fully understand why. But still, thanks for keeping it up to date too!

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

      It's all good. I've also been getting tons of requests for a fetch_user_guilds method in order to get the logged in user's guilds, and I've recently released it in Zenora v0.0.3 with tons of bug fixes. Happy development :D

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

      @@devguyahnaf I used the get_my_guilds function but I get on almost everything none.
      Fix pls.

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

      @@Noma4321 Is that so? Kindly open an issue on the Zenora github page

  • @hourz
    @hourz 2 ปีที่แล้ว +3

    Awesome thanks for Zenora!

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

    Wow just wow, thank you so much!

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

    I was about to give up on... and then I found this video! Tysm! You have earned a subscriber ;)

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

      Cheers, good luck!

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

      Thnx@@devguyahnaf

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

    Thanks! really helped

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

    very helpful pkg thanks :D

  • @ArismaShorts
    @ArismaShorts 3 ปีที่แล้ว +2

    First, love your videos

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

    hello, I have tried resetting my token and secret key a bunch of times and followed the tutorial, but when I try to log in it says "Invalid token has been passed"

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

    it just keeps going to the code= part on the website

  • @AndrieMC
    @AndrieMC 23 วันที่ผ่านมา

    what vscode theme r u using?

  • @Poxen
    @Poxen 2 ปีที่แล้ว +4

    Love the resource! However, is it possible to fetch the current user's guilds somehow?

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

      Not at the moment, also I do not maintain Zenora anymore since I'm quite fed up with the Discord API. Who knows, I might change my mind since Zenora was my first "big" lib and I love it a lot :)

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

      Heads up, I've just implemented a method to get user's guilds.
      If you have a Zenora APIClient instance called "client", you can get the current user's guilds using "client.users.get_my_guilds()"
      github.com/ahnaf-zamil/zenora/blob/master/zenora/api/userapi.py

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

    good as milk

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

    is it possible to run the discord bot in the same app as flask?

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

      If you have multiple threads, sure. But I highly discourage it, because ur bot might need to shard later on and that's gonna be a problem.
      Rather, run ur bot and flask app separately, and make them communicate through HTTP, IPC, or RPC

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

      @@devguyahnaf Would using the ipc extension allow me to access functions from my discord bot from my flask server?
      Like do some data validating and return a response?
      Thank you for taking the time to read this.

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

      @@TylerdPool I'm not sure about Discord.py IPC, so I can't tell tbh. But there are other IPC libraries for Python that you can use

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

    its all good till we know we cant join servers