auth: Add 'auth' subdomain to ROOT_SUBDOMAIN_ALIASES list.

This makes it easy to use the recommended/default value of
SOCIAL_AUTH_SUBDOMAIN without having to edit ROOT_SUBDOMAIN_ALIASES.
This commit is contained in:
Aditya Bansal 2018-08-01 13:18:52 +05:30 committed by Tim Abbott
parent f336f58b81
commit 3dd1613fff
2 changed files with 6 additions and 1 deletions

View File

@ -168,6 +168,10 @@ AUTHENTICATION_BACKENDS = (
# subdomain; if you're using this setting, the "Callback URL" should be e.g.:
# https://auth.zulip.example.com/complete/github/
#
# If you end up using a subdomain other then the default
# recommendation, you must also set the 'ROOT_SUBDOMAIN_ALIASES' list
# to include this subdomain.
#
#SOCIAL_AUTH_SUBDOMAIN = 'auth'
########

View File

@ -355,7 +355,8 @@ DEFAULT_SETTINGS.update({
'EMAIL_DELIVERER_DISABLED': False,
# What domains to treat like the root domain
'ROOT_SUBDOMAIN_ALIASES': ["www"],
# "auth" is by default a reserved subdomain for the use by python-social-auth.
'ROOT_SUBDOMAIN_ALIASES': ["www", "auth"],
# Whether the root domain is a landing page or can host a realm.
'ROOT_DOMAIN_LANDING_PAGE': False,