Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 1.57 KB

README.md

File metadata and controls

33 lines (27 loc) · 1.57 KB

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