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

# Single sign-on

> Let people sign in with your organization's own identity provider over OpenID Connect or SAML, and require it with emergency accounts as a way back in.

Single sign-on (SSO) lets your people sign in with your organization's own identity provider, such as Okta or Microsoft Entra. Aiveth by Gooclaim supports **OpenID Connect** and **SAML 2.0**.

Your identity provider takes the place of the password **and** two-step: it asks for its own second factor, so Aiveth does not ask again.

> [!NOTE]
>
> Available on the Business plan and above. On the Pro plan, single sign-on can be added on its own. Ask from **Plan & usage** in the console.

## Before you start

* [Verify your domain](https://docs.aiveth.com/sign-in/verified-domains.md). Only addresses on your verified domains sign in with SSO.
* You need the `security:manage` permission.

## Set up SSO

Go to **Security** → **Single sign-on** and choose **OpenID Connect** or **SAML**.

> [tab] OpenID Connect
>
> **1. Create an app at your provider**
>
> Use the **Redirect address** the console shows as the app's redirect URI.
>
> **2. Enter the provider's details**
>
> Fill in **Issuer address**, **Client ID** and **Client secret**, then **Save**. Aiveth reads the issuer's `/.well-known/openid-configuration` once, when you save. The document must name exactly that issuer, and every endpoint must use HTTPS.
>
> **3. Test it**
>
> Choose **Test sign-in** and sign in at your provider.
>
> **4. Turn it on**
>
> After a successful test, choose **Turn on**.

> [tab] SAML
>
> **1. Give your provider Aiveth's details**
>
> Paste the **Entity ID** and the **Sign-in return address (ACS)** into your provider, or give it Aiveth's metadata.
>
> **2. Give Aiveth your provider's details**
>
> Enter **Your provider's metadata address**, or paste the metadata XML, then **Save**.
>
> **3. Test it**
>
> Choose **Test sign-in**.
>
> **4. Turn it on**
>
> After a successful test, choose **Turn on**.

Changing the provider's details sends SSO back to draft. Test it again before you turn it on. **Turn off** stops SSO sign-in.

### Create accounts on first sign-in

By default, only people already in your organization can sign in with SSO. Tick **Make an account the first time someone signs in** to create an account for anyone on your verified domains the first time they sign in. New accounts get your default role, never an admin role.

## How Aiveth matches people

* A person is identified by their identity at your provider (the issuer and `sub` for OpenID Connect, the entity ID and NameID for SAML), **never by email alone**.
* The first SSO sign-in links an existing account by its address only when that address is on one of your verified domains.
* An account already linked to a different identity at your provider is refused. An admin decides, not the sign-in.
* With SAML, Owners and admins link SSO once from their own account page. SAML never vouches for an address on its own.

## SAML details

* Sign-in always starts at Aiveth. Responses that do not answer a request from Aiveth (IdP-initiated sign-in) are refused.
* The response or its assertion must be signed with RSA or ECDSA and SHA-256 or stronger. Every claim is read only from the signed part.
* Exactly one assertion is accepted. Encrypted assertions are not supported yet.
* Aiveth allows 2 minutes of clock skew and accepts each assertion ID only once.

## Let your IT team set it up

If someone else runs your identity provider, send them a setup link. They do not need an Aiveth account.

**1. Invite your IT team**

Under **Security** → **Invite your IT team**, enter the **IT admin's work email**, tick **Single sign-on**, **User sync** or both, and choose **Send the setup link**.

**2. They open the link**

The link alone opens nothing. A 6-digit code goes to the address you entered (10 minutes, 5 tries). The code opens a setup session that lasts one hour and reaches only what the link was made for.

* A link lasts 7 days, or until every part it was made for is done.
* Your organization has one live link at a time. A new link ends the old one. **End the link** revokes it.
* Every change is in the activity log as made by your IT team through the setup link, and your Owners are told.

## Require SSO

You can make SSO the **only** way in for people on your verified domains.

Go to **Security** → **Single sign-on required** and turn it on. When it is on:

* People on your verified domains can sign in only through SSO. Password, email code, passkey, phone and Google, Microsoft or GitHub sign-in refuse them.
* People on other addresses, such as a contractor's personal email, keep their usual ways in.

### Emergency accounts

Emergency accounts are your way back in if your identity provider is down.

* Choose up to **2** emergency accounts. Each must be an active Owner or admin with a second factor (two-step or a passkey).
* Emergency accounts may still sign in the other ways. [Country rules](https://docs.aiveth.com/sign-in/session-security.md) never refuse them either.
* Every sign-in attempt with an emergency account while SSO is required is written to the activity log and emailed to every Owner, at most once every 15 minutes per account.

To turn on **Single sign-on required**, SSO must be on and you must choose at least one emergency account. Nobody gets locked out with one click.

## Related

* [Verified domains](https://docs.aiveth.com/sign-in/verified-domains.md)
* [User sync (SCIM)](https://docs.aiveth.com/access/scim.md)
* [Session security](https://docs.aiveth.com/sign-in/session-security.md)


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