Skip to content

Commit cfe7c64

Browse files
committed
Enforce https in prod env auth callback urls
1 parent 4121d01 commit cfe7c64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vauhtijuoksu/settings/production.py

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
DEBUG = False
77

8+
# Needed for django-allauth to resolve callback urls properly
9+
ACCOUNT_DEFAULT_HTTP_PROTOCOL = config('ACCOUNT_DEFAULT_HTTP_PROTOCOL', default='https')
10+
811
AUTH_PASSWORD_VALIDATORS = [
912
{
1013
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',

0 commit comments

Comments
 (0)