> ## Documentation Index
> Fetch the complete documentation index at: https://getconvoy.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Single Sign-On (SAML)

SAML SSO lets your team sign in to Convoy using your organisation's identity provider (IdP). Supported providers include Google, Okta, Entra ID (Azure AD), Auth0, ADP, CAS, ClassLink, Cloudflare, and any custom SAML 2.0 or OIDC-compatible provider.

## Prerequisites

1. A Premium license with the SSO feature.
2. A SAML 2.0-compatible identity provider.

## Setup

**1. Enable SSO in your config**

Add your license key and enable SSO in `convoy.json`:

```json convoy.json theme={null}
{
  "license_key": "your-license-key",
  "auth": {
    "sso": {
      "enabled": true,

      // [optional] Override the callback URL Convoy gives to your IdP.
      // Defaults to the incoming request origin. Set this if Convoy is
      // behind a reverse proxy or load balancer.
      "redirect_url": "https://convoy.yourcompany.com/saml"
    }
  }
}
```

Alternatively, use environment variables:

```bash theme={null}
export CONVOY_LICENSE_KEY="your-license-key"
export CONVOY_SSO_ENABLED=true

# Optional — same as redirect_url above
export CONVOY_SSO_REDIRECT_URL="https://convoy.yourcompany.com/saml"
```

**2. Restart Convoy**

Restart your instance to apply the new config.

**3. Configure your SAML connection**

In the Convoy dashboard, go to **Organisation Settings** and click **Configure SSO**.

![](https://mintcdn.com/convoy/sGNZVuduEBi1ltRX/images/sso-settings.png?fit=max\&auto=format\&n=sGNZVuduEBi1ltRX\&q=85\&s=cd8a7a5acc05bfcb6c952607a7a40924)

Organisation Settings — Configure SSO

This opens the SSO admin portal where you select your identity provider and complete the SAML setup.

![](https://mintcdn.com/convoy/sGNZVuduEBi1ltRX/images/sso-portal.png?fit=max\&auto=format\&n=sGNZVuduEBi1ltRX\&q=85\&s=f838905fb3ed9302a7260e8d3dc87075)

SSO portal — select your identity provider

The portal provides the **ACS URL** and **SP Entity ID** you'll need to enter in your IdP. Configure exactly one SAML connection.

> [!NOTE]
>
> If you need multiple SAML connections, reach out to us at [support@getconvoy.io](mailto:support@getconvoy.io).

**4. Login with SSO**

On the login page, click **Login with SSO**. You'll be redirected to your IdP, and after authentication you'll land back in Convoy signed in.

![](https://mintcdn.com/convoy/te5h9t5NdaGaVydd/images/login-with-sso.png?fit=max\&auto=format\&n=te5h9t5NdaGaVydd\&q=85\&s=974ee5082b3e5bbd2045e691e473eccd)

Login page with SSO option

## How It Works

1. You click **Login with SSO** on the login page.
2. Convoy redirects you to your IdP for authentication.
3. You authenticate with your IdP.
4. The IdP sends a SAML assertion back to Convoy.
5. Convoy validates the assertion and issues a short-lived token.
6. Your browser lands on Convoy's `/saml` callback with this token.
7. Convoy exchanges the token for a session and logs you in.

## Troubleshooting

### "auth.sso.redirect\_url is required for SSO login"

Convoy couldn't determine where to redirect after authentication. Set the `host` field in your config to your Convoy instance's public URL:

```json theme={null}
{
  "host": "https://convoy.yourcompany.com"
}
```

Or set `auth.sso.redirect_url` explicitly.

Use the UI callback path (`/saml`) rather than API-prefixed paths (`/ui/...`). If you deploy with a `root_path`, include it (for example, `https://convoy.yourcompany.com/convoy/saml`).

### SSO button doesn't appear on the login page

* Check that your license includes the SSO feature.
* Verify `auth.sso.enabled` is `true`.
* Restart Convoy after config changes.

### "Authentication failed" after IdP redirect

* Check that the SAML connection in the SSO portal is configured correctly.
* Ensure the ACS URL and SP Entity ID in your IdP match the values shown in the SSO portal.

### Blank page or errors after callback

* Make sure you're running the latest version of Convoy.
* Clear your browser cache and try again.

## Related

* [Licensing](https://getconvoy.io/docs/business-and-enterprise/licensing.md) — Get and configure a Premium license
* [Google SSO](https://getconvoy.io/docs/product-manual/google-sso.md) — Sign in with Google OAuth
* [RBAC](https://getconvoy.io/docs/product-manual/rbac.md) — Manage permissions after sign-in


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.