SAML authentication
Meoyo supports using SAML authentication for single sign-on, both for Meoyo Cloud and self-hosted Meoyo servers. SAML Single Logout is also supported.
This page describes how to configure SAML authentication with several common providers:
- Okta
- OneLogin
- Entra ID (AzureAD)
- Keycloak
- Auth0
Other SAML providers are supported as well.
If you are self-hosting Meoyo, please follow the detailed setup instructions in the SAML configuration for self-hosting. The documentation on this page may be a useful reference for how to set up specific SAML providers.
Configure SAML
Section titled “Configure SAML”- Make sure your Meoyo Cloud organization is on the Meoyo Cloud Plus plan.
-
Set up SAML authentication by following Okta’s documentation. 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:
emailtouser.emailfirst_nametouser.firstNamelast_nametouser.lastName
- Single sign on URL:
-
Assign the appropriate accounts in the Assignments tab. These are the users that will be able to log in to your Meoyo organization.
-
If you are using Meoyo Cloud, we’ll take it from here! Please email support@zulip.com with the following information:
- Your organization’s URL
- The Identity Provider metadata provided by Okta for the application. To get the data, click the View SAML setup instructions button in the right sidebar in the Sign on tab. Copy the IdP metadata shown at the bottom of the page.
- How you would like the Meoyo log in button to be labeled: “Log in with…”
- (optional) An icon to use on the log in button
- Make sure your Meoyo Cloud organization is on the Meoyo Cloud Plus plan.
-
Navigate to the OneLogin Applications page, and click Add App.
-
Search for the SAML Custom Connector (Advanced) app and select it.
-
Set a name and logo and click Save. This doesn’t affect anything in Meoyo, but will be shown on your OneLogin Applications page.
-
In the Configuration section, specify the following fields. Leave the remaining fields as they are, including blank fields.
- 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/
- Audience:
-
In the Parameters section, add the following custom parameters. Set the Include in SAML assertion flag on each parameter.
Field name Value email Email first_name First Name last_name Last Name username Email -
If you are using Meoyo Cloud, we’ll take it from here! Please email support@zulip.com with the following information:
- Your organization’s URL
- The issuer URL from the SSO section. It contains required Identity Provider metadata.
- How you would like the Meoyo log in button to be labeled: “Log in with…”
- (optional) An icon to use on the log in button
- Make sure your Meoyo Cloud organization is on the Meoyo Cloud Plus plan.
-
From your Entra ID Dashboard, navigate to Enterprise applications, click New application, followed by Create your own application.
-
Enter a name (e.g.,
Meoyo Cloud) for the new Entra ID application, choose Integrate any other application you don’t find in the gallery (Non-gallery), and click Create. -
From your new Entra ID application’s Overview page that opens, go to Single sign-on, and select SAML.
-
In the Basic SAML Configuration section, specify the following fields:
- 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/
- Identifier (Entity ID):
-
If you want to set up IdP-initiated sign on, in the Basic SAML Configuration section, also specify:
- RelayState:
{"subdomain": "<your organization's zulipchat.com subdomain>"}
- RelayState:
-
Check the User Attributes & Claims configuration, which should already be set to the following. If the configuration is different, please indicate this when contacting support@zulip.com (see next step).
- givenname:
user.givenname - surname:
user.surname - emailaddress:
user.mail - name:
user.principalname - Unique User Identifier:
user.principalname
- givenname:
-
If you are using Meoyo Cloud, we’ll take it from here! Please email support@zulip.com with the following information:
- Your organization’s URL
- From the SAML Signing Certificate section:
- App Federation Metadata Url
- Certificate downloaded from Certificate (Base64)
- From the Set up section
- Login URL
- Microsoft Entra Identifier
- How you would like the Meoyo log in button to be labeled: “Log in with…”
- (optional) An icon to use on the log in button
- Make sure your Meoyo Cloud organization is on the Meoyo Cloud Plus plan.
-
Make sure your Keycloak server is up and running.
-
In Keycloak, register a new Client for your Meoyo organization:
- Client-ID:
https://zulipchat.com - Client Protocol:
saml - Client SAML Endpoint: (empty)
- Client-ID:
-
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
- Valid Redirect URIs:
-
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
- Property:
- Create a Mapper for the last name:
- Property:
lastName - Friendly Name:
last_name - SAML Attribute Name:
last_name - SAML Attribute Name Format:
Basic
- Property:
- Create a Mapper for the email address:
- Property:
email - Friendly Name:
email - SAML Attribute Name:
email - SAML Attribute Name Format:
Basic
- Property:
- Create a Mapper for the first name:
-
If you are using Meoyo Cloud, we’ll take it from here! Please email support@zulip.com with the following information:
- Your organization’s URL
- The URL of your Keycloak realm.
- How you would like the Meoyo log in button to be labeled: “Log in with…”
- (optional) An icon to use on the log in button
- Make sure your Meoyo Cloud organization is on the Meoyo Cloud Plus plan.
-
Set up SAML authentication by following Auth0’s documentation to create a new application. You don’t need to save the certificates or other information detailed. All you will need is the SAML Metadata URL.
-
In the Addon: SAML2 Web App Settings tab, set the Application Callback URL to
https://auth.zulipchat.com/complete/saml/. -
Edit the Settings section to match:
{"audience": "https://zulipchat.com","mappings": {"email": "email","given_name": "first_name","family_name": "last_name"},"binding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"} -
If you are using Meoyo Cloud, we’ll take it from here! Please email support@zulip.com with the following information:
- Your organization’s URL
- The SAML Metadata URL value mentioned above. It contains required Identity Provider metadata.
- How you would like the Meoyo log in button to be labeled: “Log in with…”
- (optional) An icon to use on the log in button
Synchronizing group membership with SAML
Section titled “Synchronizing group membership with SAML”You can configure each Meoyo user’s groups to be updated based on their groups in your Identity Provider’s (IdP’s) directory every time they log in.
Your IdP directory’s group names don’t have to match the associated Meoyo group names (e.g., membership in your IdP’s group finance can be synced to membership in the Meoyo group finance-department). See the technical documentation on how your IdP’s groups are mapped to Meoyo groups for details.
- Follow the instructions above to configure SAML, and go to the application you created for using SAML with Meoyo in your Applications menu.
- Select the General tab, and Edit the SAML Settings section.
- Proceed through the prompts until the main Configure SAML prompt.
- Scroll down below the Attribute Statements section (which you configured when creating the app) to Group Attribute Statements.
- Add the following attribute:
- Name:
zulip_groups - Name format:
Unspecified - Filter:
Matches regex: .*When a user signs in to Meoyo via SAML, Okta will now include a list of the user’s groups in its response to the Meoyo server.
- Name:
- To enable this feature, please email
support@zulip.com with the following information:
- Your Meoyo organization URL.
- Which groups should be synced from your IdP’s directory.
- Which groups should have a different name in Meoyo (if any).