From f7f6f099a2d1055ca7a330d97463627705dfebfa Mon Sep 17 00:00:00 2001 From: Clemens Wolff Date: Mon, 20 May 2019 12:06:18 -0400 Subject: [PATCH] Make social auth pipeline explicit --- app/app/settings.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/app/settings.py b/app/app/settings.py index 3c642eab..ae77a203 100644 --- a/app/app/settings.py +++ b/app/app/settings.py @@ -125,6 +125,18 @@ SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_KEY = env('OAUTH_AAD_KEY', None) SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_SECRET = env('OAUTH_AAD_SECRET', None) SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_TENANT_ID = env('OAUTH_AAD_TENANT', None) +SOCIAL_AUTH_PIPELINE = [ + 'social_core.pipeline.social_auth.social_details', + 'social_core.pipeline.social_auth.social_uid', + 'social_core.pipeline.social_auth.auth_allowed', + 'social_core.pipeline.social_auth.social_user', + 'social_core.pipeline.user.get_username', + 'social_core.pipeline.user.create_user', + 'social_core.pipeline.social_auth.associate_user', + 'social_core.pipeline.social_auth.load_extra_data', + 'social_core.pipeline.user.user_details', +] + # Database # https://docs.djangoproject.com/en/2.0/ref/settings/#databases