2022-01-31 11:10:30 +00:00
|
|
|
---
|
|
|
|
title: Zulip
|
|
|
|
---
|
|
|
|
|
2022-06-15 19:31:34 +00:00
|
|
|
<span class="badge badge--secondary">Support level: Community</span>
|
|
|
|
|
2022-01-31 11:10:30 +00:00
|
|
|
## What is Zulip
|
|
|
|
|
|
|
|
From https://zulip.com
|
|
|
|
|
|
|
|
:::note
|
|
|
|
**Zulip**: Chat for distributed teams. Zulip combines the immediacy of real-time chat with an email threading model.
|
2022-05-09 19:22:41 +00:00
|
|
|
With Zulip, you can catch up on important conversations while ignoring irrelevant ones.
|
2022-01-31 11:10:30 +00:00
|
|
|
:::
|
|
|
|
|
|
|
|
## Preperation
|
|
|
|
|
|
|
|
The following placeholders will be used:
|
|
|
|
|
2022-05-09 19:22:41 +00:00
|
|
|
- `authentik.company` is the FQDN of the authentik install.
|
|
|
|
- `zulip.company` is the FQDN of the Zulip instance.
|
2022-01-31 11:10:30 +00:00
|
|
|
|
|
|
|
Create an application in authentik and note the slug, as this will be used later. Create a SAML provider with the following parameters:
|
|
|
|
|
2022-05-09 19:22:41 +00:00
|
|
|
- ACS URL: `https://zulip.company/complete/saml/`
|
|
|
|
- Issuer: `https://authentik.company`
|
|
|
|
- Service Provider Binding: `Post`
|
|
|
|
- Signing Keypair: Select any certificate you have.
|
|
|
|
- Property mappings: Select all Managed mappings.
|
2022-01-31 11:10:30 +00:00
|
|
|
|
|
|
|
## Zulip Configuration
|
|
|
|
|
|
|
|
Zulip is a Django application and is configured using `/etc/zulip/settings.py`. Only settings that differ
|
2022-05-09 19:22:41 +00:00
|
|
|
from the defaults are displayed below. Please make sure you have the latest `settings.py` file as more settings
|
2022-01-31 11:10:30 +00:00
|
|
|
might have been added to defaults since you installed Zulip.
|
|
|
|
|
|
|
|
Uncomment `zproject.backends.SAMLAuthBackend` inside the `AUTHENTICATION_BACKENDS` parameter to enable SAML support
|
|
|
|
and fill in the following required configuration.
|
|
|
|
|
|
|
|
```
|
|
|
|
SOCIAL_AUTH_SAML_ORG_INFO = {
|
|
|
|
"en-US": {
|
|
|
|
"displayname": "authentik Zulip",
|
|
|
|
"name": "zulip",
|
|
|
|
"url": "{}{}".format("https://", EXTERNAL_HOST),
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
SOCIAL_AUTH_SAML_ENABLED_IDPS: Dict[str, Any] = {
|
|
|
|
# idp identifier and settings
|
|
|
|
"authentik": {
|
2022-05-09 19:22:41 +00:00
|
|
|
|
2022-01-31 11:10:30 +00:00
|
|
|
# KEEP OTHER SETTINGS AS DEFAULT OR CONFIGURE THEM ACCORDING TO YOUR PREFERENCES
|
|
|
|
"entity_id": "https://authentik.company",
|
|
|
|
"url": "https://authentik.company/application/saml/<application slug>/sso/binding/redirect/",
|
|
|
|
"display_name": "authentik SAML",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2022-05-09 19:22:41 +00:00
|
|
|
Place the certificate you associated with the SAML provider in authentik inside the `/etc/zulip/saml/idps` directory.
|
2022-01-31 11:10:30 +00:00
|
|
|
The certificate file name must match the idp identifier name you set in the configuration (i.e. authentik.crt).
|
|
|
|
|
|
|
|
:::note
|
|
|
|
Remember to restart Zulip.
|
|
|
|
:::
|
2022-05-09 19:22:41 +00:00
|
|
|
|
2022-01-31 11:10:30 +00:00
|
|
|
## Additional Resources
|
|
|
|
|
|
|
|
Please refer to the following for further information:
|
|
|
|
|
2022-05-09 19:22:41 +00:00
|
|
|
- https://zulip.com/
|
|
|
|
- https://zulip.readthedocs.io
|
|
|
|
- https://chat.zulip.org/ (Official public Zulip Chat instance)
|