Skip to content

Configure authentication methods

You can choose which configured authentication methods users can use to log in to your organization. On a self-hosted server, available methods depend on the server configuration. Options include:

  • Email and password
  • Social authentication: Google, GitHub, GitLab, Apple, Discord
  • OAuth2 with Microsoft Entra ID (AzureAD)
  • SAML authentication, including Okta, OneLogin, Entra ID (AzureAD), Keycloak, Auth0
  • OpenID Connect

Identity management options include:

  1. Go to Authentication methods.
  2. Toggle the checkboxes next to the available login options.
  3. Click Save changes.

If the login page says that no authentication backends are enabled, an organization owner cannot repair this using the settings page. The installation administrator must configure at least one backend in AUTHENTICATION_BACKENDS in /etc/zulip/settings.py and restart the server after checking the configuration. For Docker, use the deployment’s ZULIP_AUTH_BACKENDS configuration instead. Do not replace an existing SSO configuration with an unrelated example.

The initial installation uses zproject.backends.EmailAuthBackend to create the first organization and user. Password reset and registration emails also require working outgoing email. Additional methods need provider configuration, matching callback URLs and their required credentials. Enabling an organization checkbox does not install or configure a backend.

If a backend is configured on the server but disabled for a particular organization, the operator can inspect that organization’s methods with change_auth_backends --show and enable the required method with --enable. These commands require the --realm selector and must be run by the installation administrator through manage.py; backend names are those shown by the command. Test a real login before disabling another method. This command cannot configure a missing server backend or fix an unreachable identity provider.

Identity providers and customer credentials

Section titled “Identity providers and customer credentials”

On shared SaaS, the service operator owns installation settings; ask the operator which customer identity-provider integrations are supported. Do not assume that server-wide OAuth credentials can be isolated per organization by a checkbox. Dedicated hosting and on-premises deployments can use customer-controlled IdP credentials. In a hybrid setup, agree which party runs the IdP and which party can rotate its credentials and update callback URLs. Carrier and reseller operators must document these roles for each customer.

Store OAuth client secrets, signing keys and IdP passwords in the deployment’s secret store, not in a public branding profile. Rotate credentials with the operator and validate login afterward. Identity-provider credentials are separate from storage encryption BYOK: supplying an OAuth secret does not encrypt message storage or establish end-to-end encryption. In a closed network, select a locally reachable identity provider and verify login without access to public providers.