Authentication for UW Discords
- Clone project within
public_html
(if ovid) andcd
into the directory. python3 -m pip install -r requirements.txt -t pypackages/
- Remove dataclasses from pypackages
rm pypackages/dataclasses.py
- It currently crashes the site due to python version differences between server and web execution platform
- Copy
config.example.py
intoconfig.py
and edit the values. You may obtain Discord IDs by enabling Developer Mode and then right clicking the relevant portion of the Discord UI to access Copy ID context menu option. - Edit .htaccess
RewriteRule
portion to your url. For instance, if theapplication.cgi
file is located within/rc00/d00/jkzhang/public_html/uw-discord-auth
directory (pwd
command output on ovid), the .htaccess RewriteRule will contain/jkzhang/uw-discord-auth/application.cgi/
. - Visit the Discord Developers portal, select your bot, and proceed to the OAuth2 tab. Modify and add the following redirect url entry:
https://staff.washington.edu/jkzhang/uw-discord-auth/callback
. Modify this url so that the callback url is located to your installation.