Difference between revisions of "Auth: Discord"

From Lorekeeper Wiki
Jump to navigation Jump to search
m (Protected "Auth: Discord": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
m (Temporarily remove from category so folk stop trying to use it before it's fully released)
Tag: 2017 source edit
Line 20: Line 20:
 
  DISCORD_CLIENT_SECRET=your_client_secret_here
 
  DISCORD_CLIENT_SECRET=your_client_secret_here
 
Replacing the client_id and client_secret with the ones from your application.
 
Replacing the client_id and client_secret with the ones from your application.
[[Category:Social Media Authentication]]
 

Revision as of 07:27, 5 May 2022

NOTE: This information currently pertains only to develop.

Registering your Application

Discord application creation can be accessed at https://discord.com/developers/applications.

  1. Click on "New Application"
    • Give it a descriptive name, such as "Sitename" or "Sitename Lorekeeper".
  2. You will be on the "General Settings" tab of your application. Use the sidebar to switch to the "OAuth2" tab.
  3. Add the callback URL under "Redirects"
    • Default callback URL: https://your-site.com/auth/callback/discord
  4. Remember to save your changes.

Connecting to Lorekeeper

The Discord application portal can be accessed at https://discord.com/developers/applications.

You can find your application listed here once it's created. Click on it and navigate to the "OAuth2" tab via the sidebar to find the client ID and client secret on this page.

In your .env file, add the lines:

DISCORD_CLIENT_ID=your_client_id_here
DISCORD_CLIENT_SECRET=your_client_secret_here

Replacing the client_id and client_secret with the ones from your application.