Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

help center: Update "SAML authentication" to follow help center guidelines.

Mateusz Mandera95bc77ae4f08
diff --git a/static/images/help/azuread_saml_attrs.png b/static/images/help/azuread_saml_attrs.png
deleted file mode 100644
index 241d6ac0302..00000000000
Binary files a/static/images/help/azuread_saml_attrs.png and /dev/null differ
diff --git a/static/images/help/onelogin_parameters.png b/static/images/help/onelogin_parameters.png
deleted file mode 100644
index 9f8f49103f5..00000000000
Binary files a/static/images/help/onelogin_parameters.png and /dev/null differ
diff --git a/templates/zerver/help/import-from-slack.md b/templates/zerver/help/import-from-slack.md
index f776abbcc42..bd61c18e5be 100644
--- a/templates/zerver/help/import-from-slack.md
+++ b/templates/zerver/help/import-from-slack.md
@@ -106,8 +106,7 @@ Alternatively, you can [self-host](/self-hosting/) your Zulip organization. See
#### Import into a Zulip Cloud organization
-If you plan to use Zulip Cloud, we'll take it from here! Please e-mail
-[[email protected]](mailto:[email protected]) with the following information:
+{!send-us-info.md!}
1. The subdomain you would like to use for your organization. Your Zulip chat will
be hosted at `<subdomain>.zulipchat.com`.
diff --git a/templates/zerver/help/include/cloud-plus-only.md b/templates/zerver/help/include/cloud-plus-only.md
new file mode 100644
index 00000000000..09030c65d99
--- /dev/null
+++ b/templates/zerver/help/include/cloud-plus-only.md
@@ -0,0 +1,4 @@
+!!! warn ""
+ Zulip Cloud customers who wish to use SAML authentication must upgrade to
+ the Zulip Cloud Plus plan. Contact
+ [[email protected]](mailto:[email protected]) for plan benefits and pricing.
diff --git a/templates/zerver/help/include/saml-login-button.md b/templates/zerver/help/include/saml-login-button.md
new file mode 100644
index 00000000000..f132c28039b
--- /dev/null
+++ b/templates/zerver/help/include/saml-login-button.md
@@ -0,0 +1,2 @@
+1. How you would like the Zulip log in button to be labeled: “Log in with...”
+1. *(optional)* An icon to use on the log in button.
diff --git a/templates/zerver/help/include/send-us-info.md b/templates/zerver/help/include/send-us-info.md
new file mode 100644
index 00000000000..5ffcfb07db2
--- /dev/null
+++ b/templates/zerver/help/include/send-us-info.md
@@ -0,0 +1,2 @@
+If you are using Zulip Cloud, we'll take it from here! Please e-mail
+[[email protected]](mailto:[email protected]) with the following information:
diff --git a/templates/zerver/help/include/upgrade-to-plus-if-needed.md b/templates/zerver/help/include/upgrade-to-plus-if-needed.md
new file mode 100644
index 00000000000..26b74dd1c7f
--- /dev/null
+++ b/templates/zerver/help/include/upgrade-to-plus-if-needed.md
@@ -0,0 +1,3 @@
+1. Make sure your Zulip Cloud organization is on the Zulip Cloud Plus plan. Contact
+ [[email protected]](mailto:[email protected]) to upgrade if needed.
+
diff --git a/templates/zerver/help/saml-authentication.md b/templates/zerver/help/saml-authentication.md
index 4c8334442d6..9a3165d5788 100644
--- a/templates/zerver/help/saml-authentication.md
+++ b/templates/zerver/help/saml-authentication.md
@@ -1,166 +1,192 @@
# SAML authentication
-Zulip supports using SAML authentication for single sign-on, both when
-self-hosting or on the Zulip Cloud Plus plan.
+{!admin-only.md!}
-This page documents details on how to set up SAML authentication with
-Zulip with various common SAML identity providers. Once you have set up
-SAML, you may also want to consider configuring [SCIM](/help/scim).
+Zulip supports using SAML authentication for single sign-on, both for Zulip
+Cloud and self-hosted Zulip servers.
-If you are self-hosting, this documentation is likely still useful for
-how to configure these SAML providers to work with Zulip.
+This page describes how to configure SAML authentication with several common providers:
-## Configure SAML with Okta
+* Okta
+* OneLogin
+* AzureAD
+* Keycloak
-1. Make sure you have created your organization.
+Other SAML providers are supported as well.
+
+If you are [self-hosting](/self-hosting/) Zulip, please follow the detailed setup instructions in
+the [SAML configuration for self-hosting][saml-readthedocs]. The documentation
+on this page may be a useful reference for how to set up specific SAML
+providers.
+
+!!! warn ""
+ Zulip Cloud customers who wish to use SAML authentication must upgrade to
+ the Zulip Cloud Plus plan. Contact
+ [[email protected]](mailto:[email protected]) for plan benefits and pricing.
+
+## Configure SAML
+
+{start_tabs}
+
+{tab|okta}
+
+{!upgrade-to-plus-if-needed.md!}
1. Set up SAML authentication by following
[Okta's documentation](https://developer.okta.com/docs/guides/saml-application-setup/overview/).
- Specify:
- * `https://auth.zulipchat.com/complete/saml/` for the "Single sign on URL"`.
- * `https://zulipchat.com` for the "Audience URI (SP Entity ID)".
- * Skip "Default RelayState".
- * Skip "Name ID format".
- * Set 'Email` for "Application username format".
- * Provide "Attribute statements" of `email` to `user.email`,
- `first_name` to `user.firstName`, and `last_name` to `user.lastName`.
-
-1. Assign the appropriate accounts in the "Assignments" tab. These are the users
+ Specify the following fields, skipping **Default RelayState** and **Name ID format**:
+ * **Single sign on URL**: `https://auth.zulipchat.com/complete/saml/`
+ * **Audience URI (SP Entity ID)**: `https://zulipchat.com`
+ * **Application username format**: `Email`
+ * **Attribute statements**:
+ * `email` to `user.email`
+ * `first_name` to `user.firstName`
+ * `last_name` to `user.lastName`
+
+1. Assign the appropriate accounts in the **Assignments** tab. These are the users
that will be able to log in to your Zulip organization.
-1. Send the following information to us at [email protected]:
- * The URL of your zulipchat-hosted organization.
- * The "Identity Provider metadata" provided by Okta for the application.
- * The name "X" that will be displayed on the "Log in with X" button in Zulip.
- * Optionally you can also send us an icon that should be shown on the button.
+1. {!send-us-info.md!}
+
+ 1. Your organization's URL
+ 1. The **Identity Provider metadata** provided by Okta for the application
+ {!saml-login-button.md!}
+
+{tab|onelogin}
-1. We will take care of the server-side setup and let you know as soon as it's ready.
+{!upgrade-to-plus-if-needed.md!}
-## Configure SAML with OneLogin
+1. Navigate to the OneLogin **Applications** page, and click **Add App**.
-1. Make sure you have created your organization.
+1. Search for the **SAML Custom Connector (Advanced)** app and select it.
-1. Navigate to the OneLogin Applications page, and click "Add App".
+1. Set a name and logo and click **Save**. This doesn't affect anything in Zulip,
+ but will be shown on your OneLogin **Applications** page.
-1. Search for the "SAML Custom Connector (Advanced)" app and select it.
+1. In the **Configuration** section, specify the following fields. Leave the
+ remaining fields as they are, including blank fields.
-1. Set a name and logo according to your preferences and click "Save". This doesn't affect anything in Zulip,
- but will be shown on your OneLogin Applications page.
+ * **Audience**: `https://zulipchat.com`
+ * **Recipient**: `https://auth.zulipchat.com/complete/saml/`
+ * **ACS URL**: `https://auth.zulipchat.com/complete/saml/`
+ * **ACS URL Validator**: `https://auth.zulipchat.com/complete/saml/`
-1. Go to the "Configuration" section:
- * Leave the `RelayState` field empty.
- * Set `https://zulipchat.com` as the Audience.
- * Set `https://auth.zulipchat.com/complete/saml/` as the Recipient, ACS URL
- and ACS URL Validator.
- * Leave the remaining fields as they are.
+1. In the **Parameters** section, add the following custom parameters. Set the
+ **Include in SAML assertion** flag on each parameter.
-1. Go to the "Parameters" section. Ignore the pre-configured parameters that are already there
- and add custom ones to match the following screenshot:
+ | Field name | Value
+ |--- |---
+ | email | Email
+ | first_name | First Name
+ | last_name | Last Name
+ | username | Email
- ![OneLogin parameters](/static/images/help/onelogin_parameters.png)
+1. {!send-us-info.md!}
- Make sure to set the "Include in SAML assertion" flag on them.
+ 1. Your organization's URL
+ 2. The **issuer URL** from the **SSO** section. It contains required **Identity Provider** metadata.
+ {!saml-login-button.md!}
-1. The OneLogin side of configuration should be ready!
- Send the following information to us at [email protected]:
- * The URL of your zulipchat-hosted organization.
- * The issuer URL from the "SSO" section. It contains Identity Provider metadata that we will need.
- * The name "X" that will be displayed on the "Log in with X" button in Zulip.
- * Optionally you can also send us an icon that should be shown on the button.
+{tab|azuread}
-1. We will take care of the server-side setup and let you know as soon as it's ready.
+{!upgrade-to-plus-if-needed.md!}
-## Configure SAML with AzureAD
+1. From your AzureAD Dashboard, navigate to **Enterprise applications**,
+ click **New application**, followed by **Create your own application**.
-1. Make sure you have created your organization.
+1. Enter a name (e.g., `Zulip Cloud`) for the new AzureAD application,
+ choose **Integrate any other application you don't find in the
+ gallery (Non-gallery)**, and click **Create**.
-1. From your AzureAD Dashboard, navigate to "Enterprise applications",
- click "New application", followed by "Create your own application".
+1. From your new AzureAD application's **Overview** page that opens, go to
+ **Single sign-on**, and select **SAML**.
-1. Enter a name (E.g. "Zulip Cloud") for the new AzureAD application,
- choose "Integrate any other application you don't find in the
- gallery (Non-gallery)" and click "Create".
+1. In the **Basic SAML Configuration** section, specify the following fields:
-1. From your new AzureAD application's Overview page that opens, go to
- "Single sign-on" and select "SAML".
+ * **Identifier (Entity ID)**: `https://zulipchat.com`
+ * **Default**: *checked* (This is required for enabling IdP-initiated sign on.)
+ * **Reply URL (Assertion Consumer Service URL)**: `https://auth.zulipchat.com/complete/saml/`
-1. In the "Basic SAML Configuration" section:
+1. If you want to set up IdP-initiated sign on, in the **Basic SAML
+ Configuration** section, also specify:
- * Set "Identifier (Entity ID)" to be `https://zulipchat.com`.
- * Check the "Default" box - this is necessary for IdP-initiated sign on to work.
- * Set `https://auth.zulipchat.com/complete/saml/` as the "Reply URL (Assertion Consumer Service URL)".
- * Optional: If you want to set up IdP-initiated sign on, enter
- `{"subdomain": "{your organization's subdomain}"}` in the
- `RelayState` field. E.g. if your organization's
- address is `mytestorganization.zulipchat.com`, set this field to
- `{"subdomain": "mytestorganization"}`.
+ * **RelayState**: `{"subdomain": "<your organization's zulipchat.com subdomain>"}`
-1. The default "User Attributes & Claims" are correct. If you need to
- make changes to them, mention it in your email to [email protected]
- in a later step. The screenshot below illustrates the expected
- configuration - which is the default the new app comes with at the
- time of writing this:
+1. Check the **User Attributes & Claims** configuration, which should already be
+ set to the following. If the configuration is different, please
+ indicate this when contacting [[email protected]](mailto:[email protected])
+ (see next step).
- ![AzureAD attributes](/static/images/help/azuread_saml_attrs.png)
+ * **givenname**: `user.givenname`
+ * **surname**: `user.surname`
+ * **emailaddress**: `user.mail`
+ * **name**: `user.principalname`
+ * **Unique User Identifier**: `user.principalname`
-1. The AzureAD side of configuration should be ready!
- Send the following information to us at [email protected]:
- * The URL of your zulipchat-hosted organization.
- * The `App Federation Metadata Url` and the certificate
- downloaded from `Certificate (Base64)` in the "SAML Signing Certificate" section.
- * The `Login URL` and `Azure AD Identifier` from the "Set up" section.
- * The name "X" that will be displayed on the "Log in with X"
- button on the Zulip login page.
- * Optionally, you can also send us an icon that should be shown on the button.
+1. {!send-us-info.md!}
-1. We will take care of the server-side setup and let you know as soon as it's ready.
+ 1. Your organization's URL
+ 1. From the **SAML Signing Certificate** section:
+ * **App Federation Metadata Url**
+ * Certificate downloaded from **Certificate (Base64)**
+ 1. From the **Set up** section
+ * **Login URL**
+ * **Azure AD Identifier**
+ {!saml-login-button.md!}
-## Configure SAML with Keycloak
+{tab|keycloak}
-1. Make sure you have created your organization.
+{!upgrade-to-plus-if-needed.md!}
-1. Make sure your Keycloak server is up and running. We assume the URL
- is `https://keycloak.example.com` and your Keycloak realm is `yourrealm`.
+1. Make sure your Keycloak server is up and running.
1. In Keycloak, register a new Client for your Zulip organization:
- * Client-ID: `https://zulipchat.com`
- * Client Protocol: `saml`
- * Client SAML Endpoint: leave this field empty
-
-1. In the `Settings` tab for your new Keycloak client, set the following properties:
- - Valid Redirect URIs: `https://auth.zulipchat.com/*`
- - Base URL: `https://auth.zulipchat.com/complete/saml/`
- - Client Signature Required: `Disable`
-
-1. In the `Mappers` tab for your new Keycloak client:
- * Create a Mapper for first name:
- * Property: `firstName`
- * Friendly Name: `first_name`
- * SAML Attribute Name: `first_name`
- * SAML Attribute Name Format: `Basic`
- * Create a Mapper for last name:
- * Property: `lastName`
- * Friendly Name: `last_name`
- * SAML Attribute Name: `last_name`
- * SAML Attribute Name Format: `Basic`
- * Create a Mapper for email address:
- * Property: `email`
- * Friendly Name: `email`
- * SAML Attribute Name: `email`
- * SAML Attribute Name Format: `Basic`
-
-1. The Keycloak side of configuration should be ready! Send the
-following information to Zulip Support at [email protected]:
-
- * The URL of your Zulip Cloud organization, i.e. `https://example.zulipchat.com`.
- * The URL of your Keycloak realm. If `master` is your Keycloak
- realm name, then the Keycloak realm URL should resemble
- `https://keycloak.example.com/auth/realms/yourrealm`.
+ * **Client-ID**: `https://zulipchat.com`
+ * **Client Protocol**: `saml`
+ * **Client SAML Endpoint**: *(empty)*
+
+1. In the **Settings** tab for your new Keycloak client, set the following properties:
+ * **Valid Redirect URIs**: `https://auth.zulipchat.com/*`
+ * **Base URL**: `https://auth.zulipchat.com/complete/saml/`
+ * **Client Signature Required**: `Disable`
+
+1. In the **Mappers** tab for your new Keycloak client:
+ * Create a Mapper for the first name:
+ * **Property**: `firstName`
+ * **Friendly Name**: `first_name`
+ * **SAML Attribute Name**: `first_name`
+ * **SAML Attribute Name Format**: `Basic`
+ * Create a Mapper for the last name:
+ * **Property**: `lastName`
+ * **Friendly Name**: `last_name`
+ * **SAML Attribute Name**: `last_name`
+ * **SAML Attribute Name Format**: `Basic`
+ * Create a Mapper for the email address:
+ * **Property**: `email`
+ * **Friendly Name**: `email`
+ * **SAML Attribute Name**: `email`
+ * **SAML Attribute Name Format**: `Basic`
+
+1. {!send-us-info.md!}
+
+ 1. Your organization's URL
+ 2. The URL of your Keycloak realm.
+ {!saml-login-button.md!}
+
+!!! tip ""
+
+ Your Keycloak realm URL will look something like this: `https://keycloak.example.com/auth/realms/yourrealm`.
+
+{end_tabs}
+
+!!! tip ""
+ Once SAML has been configured, consider also [configuring SCIM](/help/scim).
## Related articles
* [SAML configuration for self-hosting][saml-readthedocs]
* [SCIM provisioning](/help/scim)
+* [Getting your organization started with Zulip](/help/getting-your-organization-started-with-zulip)
[saml-readthedocs]: https://zulip.readthedocs.io/en/stable/production/authentication-methods.html#saml
diff --git a/zerver/lib/markdown/tabbed_sections.py b/zerver/lib/markdown/tabbed_sections.py
index 3cbb21a53ad..3eb1bfd7998 100644
--- a/zerver/lib/markdown/tabbed_sections.py
+++ b/zerver/lib/markdown/tabbed_sections.py
@@ -81,6 +81,10 @@ TAB_SECTION_LABELS = {
"custom-subdomain": "Custom subdomain",
"zulip-cloud": "Zulip Cloud",
"self-hosting": "Self hosting",
+ "okta": "Okta",
+ "onelogin": "OneLogin",
+ "azuread": "AzureAD",
+ "keycloak": "Keycloak",
}