zulip/zerver
Aditya Bansal 9b485f3ef4 auth: Fix bug with subdomains and GitHub auth causing apparent logouts.
This adds a new settings, SOCIAL_AUTH_SUBDOMAIN, which specifies which
domain should be used for GitHub auth and other python-social-auth
backends.

If one is running a single-realm Zulip server like chat.zulip.org, one
doesn't need to use this setting, but for multi-realm servers using
social auth, this fixes an annoying bug where the session cookie that
python-social-auth sets early in the auth process on the root domain
ends up masking the session cookie that would have been used to
determine a user is logged in.  The end result was that logging in
with GitHub on one domain on a multi-realm server like zulipchat.com
would appear to log you out from all the others!

We fix this by moving python-social-auth to a separate subdomain.

Fixes: #9847.
2018-07-10 16:49:00 +05:30
..
lib auth: Fix bug with subdomains and GitHub auth causing apparent logouts. 2018-07-10 16:49:00 +05:30
management Enable pycodestyle W605 (invalid escape sequence). 2018-07-03 16:54:46 +02:00
migrations billing: Add initial support for seat based plans. 2018-07-09 14:33:08 +05:30
openapi api docs: Migrate POST /users/me/subscriptions to OpenAPI. 2018-07-03 20:15:34 +02:00
templatetags minified_js: Clean up unused imports. 2018-07-04 17:38:55 +02:00
tests auth: Fix bug with subdomains and GitHub auth causing apparent logouts. 2018-07-10 16:49:00 +05:30
tornado requirements: Upgrade pyflakes to 2.0.0. 2018-05-24 11:31:36 -07:00
views auth: Fix bug with subdomains and GitHub auth causing apparent logouts. 2018-07-10 16:49:00 +05:30
webhooks Enable pycodestyle W605 (invalid escape sequence). 2018-07-03 16:54:46 +02:00
worker registration: Use tokenized noreply address in user invite. 2018-06-23 12:03:30 -07:00
__init__.py
apps.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
context_processors.py custom profile fields: Extract a separate various for whether enabled. 2018-06-07 11:35:04 -07:00
decorator.py 2FA: Add zulip_otp_required decorator. 2018-05-23 15:46:57 -07:00
filters.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
forms.py signup: Prevent users from signing up with email containing +. 2018-06-23 12:03:30 -07:00
logging_handlers.py test_logging_handlers: Mock out `git describe` because can be slow. 2018-03-23 18:24:51 -07:00
middleware.py zerver: Change use of typing.Text to str. 2018-05-12 15:22:39 -07:00
models.py models: Add USER_SOFT_DEACTIVATED event type constant to RealmAuditLog. 2018-07-10 15:42:26 +05:30
signals.py auth: Added time conversion in new login emails. 2018-06-07 08:40:22 -07:00
static_header.txt