-
Notifications
You must be signed in to change notification settings - Fork 26
3. Auth Setup
Once the bot is installed and configured and you've successfully setup your mysql database using the supplied install/discord.sql
template you're well on your way to using the auth.
The next step will be to setup the website your users will visit to login via SSO. https://github.com/shibdib/EVE-Discord-Auth is the website in question and it can be downloaded using the same git clone method as the bot. I will NOT be covering how to setup a website with apache or nginx because google has much better answers than I do. All you need to know is the public folder of that release is where you want your website to point. (Example apache config at the bottom of this page)
For all of this to work you must have an application registered on the eve developer site. https://developers.eveonline.com/
Your callback URL will be whatever your domain is followed by /auth/
Example
The website has a few dependencies that are easily downloaded with composer. So be sure to head to the website directory and do a composer install
to ensure you have everything. Once that is done head into the config folder and update the config file with your information and rename it removing the new portion. Assuming everything is setup correctly with your web server and you inserted the auth page url in your bots config the !help auth
command will now direct your members to your webpage where they will be able to login with their eve accounts and begin the auth process on your server.
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName discord.mambaonline.org
DocumentRoot /var/www/discord/EVE-Discord-Auth/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/discord/EVE-Discord-Auth/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>