Difference between revisions of "Auth: Discord"
Jump to navigation
Jump to search
Draginraptor (talk | contribs) (Initial documentation) Tag: 2017 source edit |
Tag: 2017 source edit |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | '''NOTE: This information currently pertains only to <u>v3</u>.''' | ||
+ | |||
==Registering your Application== | ==Registering your Application== | ||
Discord application creation can be accessed at https://discord.com/developers/applications. | Discord application creation can be accessed at https://discord.com/developers/applications. | ||
Line 9: | Line 11: | ||
#Remember to save your changes. | #Remember to save your changes. | ||
− | == Connecting to Lorekeeper == | + | ==Connecting to Lorekeeper== |
The Discord application portal can be accessed at https://discord.com/developers/applications. | The Discord application portal can be accessed at https://discord.com/developers/applications. | ||
Line 18: | 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. | ||
− |
Latest revision as of 09:28, 21 March 2024
NOTE: This information currently pertains only to v3.
Registering your Application
Discord application creation can be accessed at https://discord.com/developers/applications.
- Click on "New Application"
- Give it a descriptive name, such as "Sitename" or "Sitename Lorekeeper".
- You will be on the "General Settings" tab of your application. Use the sidebar to switch to the "OAuth2" tab.
- Add the callback URL under "Redirects"
- Default callback URL: https://your-site.com/auth/callback/discord
- 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.