Merge pull request #915 from donalhunt/patch-1

redirect users back to TLS version of umap after 3rd party auth.
This commit is contained in:
Yohan Boniface 2021-06-02 14:34:02 +02:00 committed by GitHub
commit c1d7cd89da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,6 +58,7 @@ SOCIAL_AUTH_OPENSTREETMAP_SECRET = 'xxx'
MIDDLEWARE += ( MIDDLEWARE += (
'social_django.middleware.SocialAuthExceptionMiddleware', 'social_django.middleware.SocialAuthExceptionMiddleware',
) )
SOCIAL_AUTH_REDIRECT_IS_HTTPS = True
SOCIAL_AUTH_RAISE_EXCEPTIONS = False SOCIAL_AUTH_RAISE_EXCEPTIONS = False
SOCIAL_AUTH_BACKEND_ERROR_URL = "/" SOCIAL_AUTH_BACKEND_ERROR_URL = "/"