From 8f1de412b8291454203bdd8791c7966df8bc18bf Mon Sep 17 00:00:00 2001 From: Donal Hunt Date: Mon, 31 May 2021 15:33:13 +0100 Subject: [PATCH] redirect users back to TLD version of umap after 3rd party auth. setting "SOCIAL_AUTH_REDIRECT_IS_HTTPS = True" per https://python-social-auth.readthedocs.io/en/latest/configuration/settings.html#processing-redirects-and-urlopen --- umap/settings/local.py.sample | 1 + 1 file changed, 1 insertion(+) diff --git a/umap/settings/local.py.sample b/umap/settings/local.py.sample index 204b8575..f50c3d1a 100644 --- a/umap/settings/local.py.sample +++ b/umap/settings/local.py.sample @@ -58,6 +58,7 @@ SOCIAL_AUTH_OPENSTREETMAP_SECRET = 'xxx' MIDDLEWARE += ( 'social_django.middleware.SocialAuthExceptionMiddleware', ) +SOCIAL_AUTH_REDIRECT_IS_HTTPS = True SOCIAL_AUTH_RAISE_EXCEPTIONS = False SOCIAL_AUTH_BACKEND_ERROR_URL = "/"