mobile: Add support for alternative mobile URI.

Due to authentication restrictions, a deployment may need to direct
traffic for mobile applications to an alternate uri to take advantage
alternate authentication mechansism. By default the standard realm URI
will be usedm but if overridden in the settings file, an alternate uri
can be substituted.
This commit is contained in:
Tim April
2020-06-25 14:43:48 -04:00
committed by Tim Abbott
parent 984c2d2777
commit 8e2a79095d
3 changed files with 36 additions and 1 deletions

View File

@@ -241,6 +241,12 @@ SYSTEM_ONLY_REALMS = {"zulip"}
# The values will also be added to ALLOWED_HOSTS.
REALM_HOSTS: Dict[str, str] = {}
# Map used to rewrite the URIs for certain realms during mobile
# authentication. This, combined with adding the relevant hosts to
# ALLOWED_HOSTS, can be used for environments where security policies
# mean that a different hostname must be used for mobile access.
REALM_MOBILE_REMAP_URIS: Dict[str, str] = {}
# Whether the server is using the Pgroonga full-text search
# backend. Plan is to turn this on for everyone after further
# testing.