From 7edebdec03c4a1bf97f94a7d8dccf1b3fb58d2fe Mon Sep 17 00:00:00 2001 From: "authentik-automation[bot]" <135050075+authentik-automation[bot]@users.noreply.github.com> Date: Tue, 11 Nov 2025 13:02:48 +0100 Subject: [PATCH] website/docs: update discord social login script example (cherry-pick #18026 to version-2025.10) (#18057) website/docs: update discord social login script example (#18026) update the guild membership example to no longer cause an exception from a missing import. Closes #18025 Signed-off-by: TMUniversal <10200399+TMUniversal@users.noreply.github.com> Co-authored-by: TMUniversal <10200399+TMUniversal@users.noreply.github.com> --- .../docs/users-sources/sources/social-logins/discord/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/docs/users-sources/sources/social-logins/discord/index.md b/website/docs/users-sources/sources/social-logins/discord/index.md index 1617192b5a..b76bcdd441 100644 --- a/website/docs/users-sources/sources/social-logins/discord/index.md +++ b/website/docs/users-sources/sources/social-logins/discord/index.md @@ -143,6 +143,8 @@ Ensure that the Discord OAuth source in **Federation & Social login** has the ad 4. Provide a name for the policy and set the following expression: ```python +from authentik.sources.oauth.models import OAuthSource + # 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.