# `sso`

Restrict project login to specific identity provider categories defined in the Redocly platform.
This configuration determines which IdPs are available for logging in to a project.
Configuring SSO by itself does not require users to log in to access a project.
To require login to a project, [`rbac`](/docs/platform/config/access/rbac) or [`requiresLogin`](/docs/platform/config/access/requires-login) must also be configured.

## Options

| Option | Type | Description |
| --- | --- | --- |
| sso | [string] | List of identity provider categories from Redocly. Possible values: `REDOCLY`, `CORPORATE`, `GUEST`, or `[]`. A category corresponds to the **Login type** assigned to an identity provider in Redocly.  To target a specific identity provider by its unique ID, use [`access.idps`](/docs/platform/config/access/idps) instead of `sso`. `access.sso` and `access.idps` are mutually exclusive and cannot be configured together.  Default value: `AUTO` - used when neither `sso` nor `idps` is defined. It offers `GUEST` IdPs, if any are defined in Redocly. Otherwise, it offers `CORPORATE` IdPs, if defined in Redocly. When a category contains a single IdP, users are redirected to this IdP. With multiple IdPs, users choose one on the login screen. If no IdPs are defined, it falls back to the `REDOCLY` IdP. Users then have the option to log in using their Redocly credentials or Social Login providers (like `Google`). |

## Examples

### Use the access object (recommended)

The recommended way to configure `sso` is within the `access` object:

```yaml
access:
  sso:
    - GUEST
    - REDOCLY
```

### Disable SSO

The following example disables SSO using the `access` object:

```yaml
access:
  sso: []
```

You might apply this configuration to a project that also has `rbac` configured.
In that case, pages assigned to the `authenticated` default team are not accessible to anyone.
Otherwise, if you do not have `rbac` configured, or you have all pages assigned to the `anonymous` default team, all pages are accessible.

### Root-level configuration (deprecated)

**Deprecated configuration**

Root-level `sso` configuration displays warnings when the `access` object is present.
Migrate to the `access` object format.

```yaml
sso:
  - GUEST
  - REDOCLY
```

## Resources

- **[Access configuration](/docs/platform/config/access)** - Group authentication and access settings together using the `access` object
- **[RBAC configuration](/docs/platform/config/access/rbac)** - Complete options for configuring role-based access control for granular project permissions and user management
- **[RequiresLogin configuration](/docs/platform/config/access/requires-login)** - Require login for all users to your project without implementing complex role-based access control
- **[Configure Google Workspace as a SAML SSO](/docs/platform/organization/sso/configure-google-sso)** - Integrate Google Workspace SAML 2 SSO with Redocly for enterprise authentication workflows
- **[Single sign-on and login](/docs/platform/organization/sso/sso)** - Understand different identity provider categories in Redocly and how they apply to project authentication
- **[Add identity providers](/docs/platform/organization/sso/add-idp)** - Follow steps to add identity providers in Redocly for centralized authentication management
- **[Configure project SSO](/docs/platform/organization/sso/configure-sso)** - Enable multiple identity provider categories to give users flexible authentication options for your projects
