Discord Oauth2 with NiceGUI
A simple Discord Login using NiceGUI and Zenora.
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.
- Copy the Generated URL, we'll need this later as well. Zenora Discord REST API in Python (Read More)
- Clone the repository.
- Create the virtual env and install the requirements with
make
- Run the application with
make start