Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
scim: Add SCIMConfigDict.
Zixuan James Li0952b024c1ca
diff --git a/zerver/lib/types.py b/zerver/lib/types.pyindex 381950bd208..94e809c927b 100644--- a/zerver/lib/types.py+++ b/zerver/lib/types.py@@ -273,3 +273,9 @@ class RealmPlaygroundDict(TypedDict):name: strpygments_language: strurl_prefix: str+++class SCIMConfigDict(TypedDict):+ bearer_token: str+ scim_client_name: str+ name_formatted_included: booldiff --git a/zproject/dev_settings.py b/zproject/dev_settings.pyindex c9153f1e7b3..f5e906157a6 100644--- a/zproject/dev_settings.py+++ b/zproject/dev_settings.py@@ -1,8 +1,9 @@import osimport pwd-from typing import Optional, Set, Tuple+from typing import Dict, Optional, Set, Tuplefrom scripts.lib.zulip_tools import deport+from zerver.lib.types import SCIMConfigDictZULIP_ADMINISTRATOR = "[email protected]"@@ -186,7 +187,7 @@ SOCIAL_AUTH_SUBDOMAIN = "auth"MEMCACHED_USERNAME: Optional[str] = None-SCIM_CONFIG = {+SCIM_CONFIG: Dict[str, SCIMConfigDict] = {"zulip": {"bearer_token": "token1234","scim_client_name": "test-scim-client",diff --git a/zproject/test_extra_settings.py b/zproject/test_extra_settings.pyindex 23b5964eecf..175a86c4083 100644--- a/zproject/test_extra_settings.py+++ b/zproject/test_extra_settings.py@@ -5,7 +5,7 @@ import ldapfrom django_auth_ldap.config import LDAPSearchfrom zerver.lib.db import TimeTrackingConnection, TimeTrackingCursor-from zerver.lib.types import SAMLIdPConfigDict+from zerver.lib.types import SAMLIdPConfigDict, SCIMConfigDictfrom .config import DEPLOY_ROOT, get_from_file_if_existsfrom .settings import (@@ -272,7 +272,7 @@ RATE_LIMITING_RULES: Dict[str, List[Tuple[int, int]]] = {FREE_TRIAL_DAYS: Optional[int] = None-SCIM_CONFIG = {+SCIM_CONFIG: Dict[str, SCIMConfigDict] = {"zulip": {"bearer_token": "token1234","scim_client_name": "test-scim-client",