2021-06-22 19:46:44 +00:00
|
|
|
---
|
|
|
|
title: Discord
|
|
|
|
---
|
|
|
|
|
2022-06-15 19:31:34 +00:00
|
|
|
<span class="badge badge--primary">Support level: authentik</span>
|
|
|
|
|
2021-06-22 19:46:44 +00:00
|
|
|
Allows users to authenticate using their Discord credentials
|
|
|
|
|
|
|
|
## Preparation
|
|
|
|
|
|
|
|
The following placeholders will be used:
|
|
|
|
|
2022-05-09 19:22:41 +00:00
|
|
|
- `authentik.company` is the FQDN of the authentik install.
|
2021-06-22 19:46:44 +00:00
|
|
|
|
|
|
|
## Discord
|
|
|
|
|
|
|
|
1. Create an application in the Discord Developer Portal (This is Free) https://discord.com/developers/applications
|
|
|
|
|
|
|
|
![New Application Button](discord1.png)
|
|
|
|
|
|
|
|
2. Name the Application
|
|
|
|
|
|
|
|
![Name App](discord2.png)
|
|
|
|
|
|
|
|
3. Select **OAuth2** from the left Menu
|
|
|
|
|
|
|
|
4. Copy the **Client ID** and _save it for later_
|
|
|
|
|
|
|
|
5. **Click to Reveal** the Client Secret and _save it for later_
|
|
|
|
|
2023-04-21 16:24:42 +00:00
|
|
|
6. Click **Add Redirect** and add https://authentik.company/source/oauth/callback/discord/
|
2021-06-22 19:46:44 +00:00
|
|
|
|
|
|
|
Here is an example of a completed OAuth2 screen for Discord.
|
|
|
|
|
2023-04-21 16:24:42 +00:00
|
|
|
![](discord3.png)
|
2021-06-22 19:46:44 +00:00
|
|
|
|
2021-10-18 14:35:12 +00:00
|
|
|
## authentik
|
2021-06-22 19:46:44 +00:00
|
|
|
|
2022-05-17 22:03:02 +00:00
|
|
|
8. Under _Directory -> Federation & Social login_ Click **Create Discord OAuth Source**
|
2021-06-22 19:46:44 +00:00
|
|
|
|
|
|
|
9. **Name:** Choose a name (For the example I used Discord)
|
|
|
|
10. **Slug:** discord (You can choose a different slug, if you do you will need to update the Discord redirect URLand point it to the correct slug.)
|
|
|
|
11. **Consumer Key:** Client ID from step 4
|
|
|
|
12. **Consumer Secret:** Client Secret from step 5
|
|
|
|
|
2021-10-18 14:35:12 +00:00
|
|
|
Here is an example of a complete authentik Discord OAuth Source
|
2021-06-22 19:46:44 +00:00
|
|
|
|
2023-04-21 16:24:42 +00:00
|
|
|
![](discord4.png)
|
2021-06-22 19:46:44 +00:00
|
|
|
|
|
|
|
Save, and you now have Discord as a source.
|
|
|
|
|
|
|
|
:::note
|
2022-12-12 15:52:00 +00:00
|
|
|
For more details on how-to have the new source display on the Login Page see [here](../general#add-sources-to-default-login-page).
|
2021-10-18 14:35:12 +00:00
|
|
|
:::
|