Skip to content

Instantly share code, notes, and snippets.

View Chaoskjell44's full-sized avatar
😪
school boring

Chaos Chaoskjell44

😪
school boring
View GitHub Profile
@Chaoskjell44
Chaoskjell44 / gist:c580bc56bced5cc5dc0cc93e228b8be6
Created January 23, 2026 14:11
Authentik fixed discord login property mapping
import base64
import requests
from authentik.core.models import Group
# To get the guild ID number for the parameters, open Discord, go to Settings > Advanced and enable developer mode.
# Right-click on the server/guild title and select "Copy ID" to get the guild ID.
# Set these values
ALLOWED_GUILDS = "123456789101112" # Discord server id to fetch roles from
AVATAR_SIZE = "64" # Valid avatar size values: 16,32,64,128,256,512,1024.
# Larger values than 64 may cause HTTP error 431 on applications/providers