mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
This gives more flexibility on a server with multiple organizations and SAML IdPs. Such a server can have some organizations handled by IdPs with SLO set up, and some without it set up. In such a scenario, having a generic True/False server-wide setting is insufficient and instead being able to specify the IdPs/orgs for SLO is needed.
44 lines
989 B
Python
44 lines
989 B
Python
from typing import List, Optional, TypedDict
|
|
|
|
|
|
class JwtAuthKey(TypedDict):
|
|
key: str
|
|
# See https://pyjwt.readthedocs.io/en/latest/algorithms.html for a list
|
|
# of supported algorithms.
|
|
algorithms: List[str]
|
|
|
|
|
|
class SAMLIdPConfigDict(TypedDict, total=False):
|
|
entity_id: str
|
|
url: str
|
|
slo_url: str
|
|
sp_initiated_logout_enabled: bool
|
|
attr_user_permanent_id: str
|
|
attr_first_name: str
|
|
attr_last_name: str
|
|
attr_username: str
|
|
attr_email: str
|
|
attr_org_membership: str
|
|
auto_signup: bool
|
|
display_name: str
|
|
display_icon: str
|
|
limit_to_subdomains: List[str]
|
|
extra_attrs: List[str]
|
|
x509cert: str
|
|
x509cert_path: str
|
|
|
|
|
|
class OIDCIdPConfigDict(TypedDict, total=False):
|
|
oidc_url: str
|
|
display_name: str
|
|
display_icon: Optional[str]
|
|
client_id: str
|
|
secret: Optional[str]
|
|
auto_signup: bool
|
|
|
|
|
|
class SCIMConfigDict(TypedDict):
|
|
bearer_token: str
|
|
scim_client_name: str
|
|
name_formatted_included: bool
|