Added upstream sample config for Discord, brand logo in templates
This commit is contained in:
@@ -452,6 +452,40 @@ upstream_oauth2:
|
||||
template: "{{ user.preferred_username }}"
|
||||
```
|
||||
|
||||
### Discord
|
||||
|
||||
1. Create a new application in the Discord Developer Portal (see [documentation](https://discord.com/developers/applications))
|
||||
2. Add the following "Redirect URI" in the OAuth2 tab under settings: `https://<auth-service-domain>/upstream/callback/<id>`
|
||||
|
||||
Authentication service configuration:
|
||||
|
||||
```yaml
|
||||
upstream_oauth2:
|
||||
providers:
|
||||
- id: 01JQK7DK6VFH62NMW4HS9RKD3R
|
||||
human_name: Discord
|
||||
brand_name: "discord"
|
||||
token_endpoint_auth_method: "client_secret_post"
|
||||
issuer: "https://discord.com"
|
||||
client_id: "<client-id>" # TO BE FILLED
|
||||
client_secret: "<client-secret>" # TO BE FILLED
|
||||
fetch_userinfo: true
|
||||
userinfo_endpoint: "https://discord.com/api/users/@me"
|
||||
scope: "openid identify email"
|
||||
claims_imports:
|
||||
localpart:
|
||||
action: suggest
|
||||
template: "{{ user.username }}"
|
||||
displayname:
|
||||
action: suggest
|
||||
template: "{{ user.global_name }}"
|
||||
email:
|
||||
action: suggest
|
||||
template: "{{ user.email }}"
|
||||
account_name:
|
||||
template: "{{ user.username }}"
|
||||
```
|
||||
|
||||
|
||||
### Rauthy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user