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

# Single sign-on

> Connect a team to an OIDC or SAML identity provider, test sign-in, and set up owner recovery.

A team owner can connect one identity provider at a time. Members keep the roles and dashboard access assigned to them in Chartbrew. Invite new members from team settings before they sign in.

## Chartbrew Cloud

The [Chartbrew Cloud](https://chartbrew.com) Professional plan includes team single sign-on with OIDC or SAML.

## Self-hosted Chartbrew

On Chartbrew OS, the instance administrator must run the database migrations, configure the public HTTPS addresses for the client and API, and set up SMTP for invitations and recovery notices. See [Environment variables](https://docs.chartbrew.com/environment-variables.md).

For an internal OIDC provider, the administrator can list trusted private HTTPS origins in `server/config/sso-trusted-origins.json`. Use a JSON array containing the issuer origin and any private origins that serve tokens or signing keys.

## Connect your identity provider

Open **Settings → Single sign-on** as the team owner. Copy the addresses from this page. Each team has its own callback address.

### OpenID Connect (OIDC)

1. Register a web application with your provider. Enable the authorization code flow with PKCE (S256) and client secret authentication.
2. Add the **Redirect URI** from Chartbrew to the list of allowed redirect URIs. Include the exact scheme, host, port, and path.
3. In Chartbrew, select **OIDC** and enter the issuer URL, client ID, and client secret. Select **Save draft**.

### SAML 2.0

1. Create a SAML application at your provider. Copy the **Entity ID** and **Assertion consumer service URL** from Chartbrew.
2. Configure the provider to sign both the response and the assertion. Select a persistent NameID, or configure an immutable subject attribute and enter its name in Chartbrew.
3. In Chartbrew, select **SAML**, paste the provider metadata XML, and select **Save draft**. The metadata must include a signing certificate and an HTTPS sign-in URL with the HTTP-Redirect binding.

## Test and activate the connection

1. Select **Test OIDC connection** or **Test SAML connection**. Sign in at your provider and return to Chartbrew in the same tab.
2. Select **Activate tested connection**. On first setup, SSO is optional.
3. Open the **Team sign-in link** in a private browser window. Sign in through your provider. On first sign-in, enter your Chartbrew credentials and your two-factor code if enabled to link your account.
4. Sign out, then use the team link again to confirm you can return to your team.

## Show your brand and route sign-in by email

Set your organization name and logo in **Settings → Business profile**. Return to **Single sign-on**, check the preview, and select **Publish branding**.

To let members start from the general sign-in page, save their email domain under **Sign-in domain**. Add the displayed TXT record to DNS, then select **Verify domain**. Keep the record in place. When one team matches, Chartbrew shows its branding and sign-in options. When SSO is required, Chartbrew sends the member to the provider. The team sign-in link also works before domain verification.

## Require SSO and prepare for recovery

Sign in through the provider as the team owner. Create recovery codes, store them securely with the **Owner recovery link**, and confirm you saved them. Then select **Require SSO**. Public shares and API keys keep their own access settings.

If your provider is unavailable, open the recovery link and enter your owner email, password, two-factor code if enabled, and a recovery code. Recovery removes the team connection and restores password access. Chartbrew sends a notice to the owner. Set up and test a new connection before requiring SSO again.


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