From b0993ffd7039f1f045772f75e2f9af9b690cf604 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Tue, 19 Jan 2021 23:54:59 +0000 Subject: [PATCH] web/quotes: take discord settings from secrets --- web/quotes/quotesapp/prod_settings.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/web/quotes/quotesapp/prod_settings.py b/web/quotes/quotesapp/prod_settings.py index 881f20e1af..206d29075a 100644 --- a/web/quotes/quotesapp/prod_settings.py +++ b/web/quotes/quotesapp/prod_settings.py @@ -13,3 +13,16 @@ DATABASES = { "NAME": "quotesdb", } } + +SOCIALACCOUNT_PROVIDERS = { + "discord": { + "APP": { + "client_id": os.environ["DISCORD_CLIENT_ID"], + "secret": os.environ["DISCORD_SECRET"], + }, + "SCOPE": [ + "identify", + "email", + ], + }, +}