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

# Single sign-on (SSO)

> Let your team sign in with Google, Okta or Microsoft Entra ID.

Let team members sign in to Lago with your identity provider. Configure the provider, connect it to Lago and choose the login methods your organization allows.

## Google SSO

Lago integrates with Google Single Sign-On (Google SSO), enabling your team to access Lago using their existing Google credentials.
Team members log in with their corporate Gmail accounts, so they don't need an additional username and password.

## Okta SSO

> [!NOTE]
>
> This integration requires a premium add-on. [Contact Lago](mailto:hello@getlago.com) for access.

Lago integrates with Okta Single Sign-On (Okta SSO), enabling your team to access Lago using their existing Okta credentials.

### Configure an authorization server

1. Log in to your Okta Admin Console.
2. Navigate to **Security** → **API** → **Authorization Servers**.
3. Create a new server by clicking **Add Authorization Server**.
4. Set `Name`: Choose a name for the auth server (e.g., `Lago`).
5. Set `Audience`: Enter the audience value which is usually your app’s base URL (e.g., `https://app.getlago.com` or `https://eu.getlago.com`).
6. Set `Description`: Optional field to describe the auth server.

### Create scopes

Scopes define the level of access the app is requesting.

1. In the Authorization Server details, click on Scopes tab.
2. Add a new scope that your app requires:
3. Set `Name`: `user_info`.
4. Set `Display name`: Access user info.
5. Set `Description`: This allows you to use user info to sign-in/sign-up to the app.
6. Set `User consent`: Implicit.
7. Set `Default scope`: False.

### Create an application and settings

1. Go to your Okta Admin Console.
2. Navigate to **Applications** → **Applications**
3. Create a new application by clicking **Create App Integration**
4. **Sign-in method**: Define the method as `OIDC - OpenID Connect` & `Web Application`
5. **Grant type**: Check the `Refresh token` option
6. **Sign-in redirect URLs**: Enter the sign-in redirect value which is usually your app’s base URL with these values (e.g., `https://app.getlago.com/auth/okta/callback` or `https://eu.getlago.com/auth/okta/callback`)
7. **Assignments**: Define the assignment option based on your policy
   Once created, please ensure the `Refresh tokens behaviour` is set to `Use persistent token`

### Connect Lago to Okta

1. Go to your Lago Settings view.
2. Access the Authentication section.
3. Set `Domain name`: usually your app base URL (e.g., `acme.com`).
4. Set `Application client ID`: Public identifier for the client that is required for all OAuth flows..
5. Set `Application client secret`: Secret generated by Okta for this application.
6. Set `Okta organization name`: Name of your organization (e.g., for a trial account `trial-5875810`).

Add team members to Okta and verify their accounts before they sign in.

### Log in to Lago or join an existing organization

Once this integration is switched on, team members can log in or join an existing organization with their corporate Okta accounts, without an additional username and password.

### Edit or delete Okta's connection

Once this integration is switched on, you can edit the connection information or delete it. Removing the connection disables Okta sign-in. Confirm that another sign-in method is enabled and available to your team before removing it.

## Microsoft Entra ID SSO

> [!NOTE]
>
> This integration requires a premium add-on. [Contact Lago](mailto:hello@getlago.com) for access.

Lago integrates with Microsoft Entra ID using OpenID Connect (OIDC), enabling your team to access Lago using their existing Microsoft Entra ID credentials.

### Register an application in Microsoft Entra ID

1. Sign in to the [**Microsoft Entra admin center**](https://entra.microsoft.com).
2. Navigate to **Identity** → **Applications** → **App registrations** and click **New registration**.
3. **Name**: choose a name for the application (e.g., `Lago`)
4. **Supported account types**: select the option that matches your policy (single tenant is the most common)
5. **Redirect URI**: set the platform to `Web` and enter your app's base URL with the callback path (e.g., `https://app.getlago.com/auth/entra/callback` or `https://eu.getlago.com/auth/entra/callback`)
6. Click **Register**

### Create a client secret

1. In the application, go to **Certificates & secrets** → **Client secrets** → **New client secret**.
2. Copy the secret **Value** immediately (not the Secret ID). It is only displayed once.

### Collect the required values

From the application **Overview** page, note the following:

1. **Application (client) ID**
2. **Directory (tenant) ID**

Together with the client secret **Value** created in the previous step, these are the values you will enter in Lago. The default OpenID scopes (`openid`, `profile`, `email`) are used and require no admin consent.

### Connect Lago to Microsoft Entra ID

1. Go to your Lago Settings view.
2. Access the Authentication section and select **Microsoft Entra ID**.
3. Set `Domain name`: usually your email domain (e.g., `acme.com`).
4. Additional domains (optional): other email domains whose users sign in through the same Entra ID tenant (e.g., `de.acme.com`, `us.acme.com`). Type each domain and press Enter.
5. Set `Entra ID client ID`: the Application (client) ID from the app registration.
6. Set `Entra ID client secret`: the client secret Value generated by Microsoft Entra ID.
7. Set `Entra ID tenant ID`: the Directory (tenant) ID from the app registration.
8. Host (optional): defaults to `login.microsoftonline.com`. Only change it if your tenant runs on a national or sovereign cloud.

Add team members to your Microsoft Entra ID tenant and verify their accounts before they sign in.

> [!NOTE]
>
> Each user logs in with their Lago email address. Its domain must be the domain name or one of the additional domains of the integration, and it must match the email Microsoft Entra ID returns for their account: the account's **Email** (`mail`) attribute, or its user principal name when the account has no email. The comparison ignores case.
>
> This also applies to invitations: the invitation is sent to the team member's Lago email, and they must sign in through Entra ID with an account that has that email.

> [!TIP]
>
> If your users' mailboxes are on regional or subsidiary domains (e.g., `de.acme.com`) while the integration is set up on `acme.com`, add those domains as additional domains. Users then log in with their mailbox address.

A domain can only be connected to one Microsoft Entra ID integration, whether as the domain name or as an additional domain.

### Log in to Lago or join an existing organization

Once this integration is switched on, team members can log in or join an existing organization with their corporate Microsoft Entra ID accounts, without an additional username and password.

### Edit or delete the Microsoft Entra ID connection

Once this integration is switched on, you can edit the connection information or delete it. When you edit it, the client secret field is empty: leave it empty to keep the current secret, or enter a new secret Value to replace it (for example when the secret expires in Microsoft Entra ID).

Removing the connection disables Microsoft Entra ID sign-in. Confirm that another sign-in method is enabled and available to your team before removing it.

## Login method enforcement

As an organization admin, you can control which authentication methods are allowed for your team, and enforce specific login methods across your organization.

### Managing authentication methods

Admins can configure allowed login methods from the **Organization Settings / Authentication** tab:

1. Navigate to your organization settings
2. Click on the **Authentication** section
3. Enable or disable login methods such as:
   * Password login
   * Google OAuth
   * Okta SSO (if connected)
   * Microsoft Entra ID SSO (if connected)

Only enabled methods will be available to users for login.


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