zulip/zproject
Mateusz Mandera fc247cba3f remote_billing: Fix /self-hosted-billing/ handling for desktop app.
When you click "Plan management", the desktop app opens
/self-hosted-billing/ in your browser immediately. So that works badly
if you're already logged into another account in the browser, since that
session will be used and it may be for a different user account than in
the desktop app, causing unintended behavior.

The solution is to replace the on click behavior for "Plan management"
in the desktop app case, to instead make a request to a new endpoint
/json/self-hosted-billing, which provides the billing access url in a
json response. The desktop app takes that URL and window.open()s it (in
the browser). And so a remote billing session for the intended user will
be obtained.
2024-01-15 16:50:48 -08:00
..
jinja2 jinja2: Make sure that 500 pages have support_email set. 2023-04-12 16:41:07 -07:00
__init__.py
backends.py auth: Add a configurable wrapper around authenticate calls. 2024-01-15 12:18:48 -08:00
computed_settings.py context_processors: Add common context to be used in corporate pages. 2023-12-08 12:26:12 -08:00
config.py coverage: Clean up coverage configuration. 2023-05-31 13:53:04 -07:00
configured_settings.py settings: Print about custom settings from runtornado. 2023-12-05 12:33:34 -08:00
default_settings.py auth: Add a configurable wrapper around authenticate calls. 2024-01-15 12:18:48 -08:00
dev_settings.py settings: Simplify testing push bouncer. 2023-12-10 17:36:25 -08:00
dev_urls.py config_error: Split error pages into their own pages. 2023-10-11 17:13:01 -07:00
email_backends.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
legacy_urls.py legacy_urls: Add type annotation to legacy_urls. 2022-08-12 17:08:04 -07:00
prod_settings.pyi lint: Replace pycodestyle and pyflakes with ruff. 2022-11-03 12:10:15 -07:00
prod_settings_template.py s3: Add a setting for S3 addressing style. 2024-01-05 11:12:18 -08:00
sentry.py models: Extract zerver.models.users. 2023-12-16 22:08:44 -08:00
settings.py ruff: Fix M001 Unused `noqa` directive. 2022-11-03 12:10:15 -07:00
settings_types.py saml: Rework SP-initiated logout config to support IdP-level config. 2023-05-23 13:01:15 -07:00
template_loaders.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
test_extra_settings.py settings: Set default free trial days for basic plan to 30 days. 2024-01-12 08:50:51 -08:00
test_settings.py settings: Refactor how TEST_SUITE is configured. 2023-12-04 09:50:14 -08:00
urls.py remote_billing: Fix /self-hosted-billing/ handling for desktop app. 2024-01-15 16:50:48 -08:00
wsgi.py