Skip to content

Commit e1b2f25

Browse files
authored
Merge pull request #475 from MetaCell/feature/fix-redirect
fix: Force HTTPS on social auth redirect
2 parents 18dce21 + 67a65bd commit e1b2f25

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

applications/composer/backend/backend/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@
379379
# LOGIN_REDIRECT_URL = "/"
380380
SOCIAL_AUTH_LOGIN_REDIRECT_URL = "/"
381381
LOGOUT_REDIRECT_URL = "/logged-out/"
382+
SOCIAL_AUTH_REDIRECT_IS_HTTPS = True
382383

383384
if DEBUG:
384385
INSTALLED_APPS += [
@@ -403,3 +404,4 @@
403404
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
404405
USE_X_FORWARDED_HOST = True
405406
SECURE_SSL_REDIRECT = False
407+

0 commit comments

Comments
 (0)