Skip to content

A simple login/logout using Zenora Lib, Discord Oauth2 and NiceGUI.

License

Notifications You must be signed in to change notification settings

FlynV/NiceGUI-Discord-Oauth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Oauth2 with NiceGUI

Log in and out using Discord Oauth2 (Zenora) and NiceGUI.

A simple Discord Login using NiceGUI and Zenora.

Create Discord Application

Head to Discord Developer Portal and create a new application. After creating the app, go to OAuth2 tab. Get ClientID, Client Secret from there (we'll need those later).

  • Head to Bot Tab and reset the Token (save the Token for later, we'll need it as well).
  • Set Redirects to http://localhost:8000/oauth/callback (8000 port for Native, 8080 for Web)
  • Set the default auth link to the redirect we've just created.

  • Now head to URL Generator under OAuth2 tab. Select the scopes that your web/standalone application needs.
  • Select the Redirect Link as the one we've set before.

Configuring the Application

  • Clone the repository.
  • Create the virtual env and install the requirements with make
  • Run the application with make start

About

A simple login/logout using Zenora Lib, Discord Oauth2 and NiceGUI.

Topics

Resources

License

Stars

Watchers

Forks