# Auth modules

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/air/llms.txt).

Authentication modules are used to verify the identity of users before granting them access to resources in JetBrains Air.

The Auth Modules page displays a list of available authentication modules.

The Auth modules page displays a list of available authentication modules. To access this page, in the sidebar, under Users and access, select Identity providers, then select Auth modules.

Procedure: Add an auth module

1. In the sidebar, under Users and access, select Identity providers, then select Auth modules.

2. Click New module.

3. In Select an identity provider, select a provider. To use a protocol instead, under ... or choose an authentication protocol, select LDAP, OpenID Connect, OAuth 2.0, or SAML 2.0.

Your organization also needs a verified email domain before users can find it through single sign-on (SSO). See [Verify your domain for SSO](#verify-domain-for-sso).

Procedure: Manage an auth module

1. On the Auth modules page, select the module in the list. Its details open next to the list.

2. In the toolbar, click Enable, Set default, or Delete.

To change the settings of a module, click its name. To change the order of modules, drag a module in the list.

## Third-party authentication providers

JetBrains Air lets you connect to one or more third-party authentication services.

One of the advantages of third-party authentication is that it leverages accounts for services that may already be in use by your organization. By allowing users to log in with a single set of credentials across multiple applications, they are less likely to experience the frustration that comes with remembering multiple usernames and passwords.

JetBrains Air provides pre-configured authentication modules for services that work with various protocols like OAuth 2.0, SAML, LDAP, and OpenID. It also provides generic modules for each protocol that you can use to let users log in to JetBrains Air with accounts from other third-party services.

## Default authentication

You can set one auth module as the default. The Default column on the Auth modules page shows which module is currently the default.

## Two-factor authentication

Two-factor authentication (2FA) adds a one-time verification code when users log in with their JetBrains Account. You require it for your whole organization, not per auth module: in the sidebar, select Organization | Administration, then click Require 2FA. To learn more, see [Two-factor authentication](https://www.jetbrains.com/help/organization-guide/two-factor-authentication.html).

If you're working with authentication modules supported by third-party services, the configuration and enrolment in two-factor authentication is also managed in the external service.

## Verify your domain for SSO

After you configure an auth module, verify at least one email domain for your organization. Use the domain of the email addresses that your users sign in with, so that they can find or join your organization through SSO.

Until you verify a domain, users who aren't already members of your organization can't find or join it through SSO using their email address. On their first sign-in, they must find the organization by entering its organization ID, so [share the ID with them](#copy-organization-id). Users who are already members can continue signing in as before, and the auth module remains active.

The sign-in form provides both options: Continue with email or [Find organization by org ID](#copy-organization-id).

Verify domains for the organization as a whole, not separately for each auth module. While your organization has an auth module configured and no verified domain, JetBrains Console shows an onboarding banner with Verify domain and Copy organization ID actions.

Procedure: Add domain

1. Log in to [JetBrains Console](https://console.jetbrains.cloud/).

2. In the sidebar, select Organization | Administration.

3. In the Settings section of the Administration page, click Add and verify your company domain.

If you already have one or more domains configured, click Manage next to Domain.

4. On the Domains page, enter your domain, for example, `mycompany.com`, and click Add domain.

After you add a domain to the organization, verify it to confirm you truly are the owner of the domain.

Procedure: Verify domain

To verify your domain, you’ll need administrator access to your domain registrar or DNS host. If you don’t know how to access it, contact the domain administrator in your organization for assistance.

1. After you add a domain, copy the verification code you see on the Domains page.

If you don't see this page, or the controls on this page are inactive, make sure your role has the necessary [permissions](roles.html#permissions).

![DNS TXT records.png](images/verification-code-on-domains-page-highlighted.png)

2. Go to your domain registrar or DNS host. Follow the instructions provided by your domain host to add a new DNS TXT record.

3. Paste the verification code into the Value field of the new record.

4. Save the DNS TXT record.

It may take up to 72 hours for your domain registrar to publish the new record. We will check your domain’s DNS records every hour and notify you by email once we verify your domain. You will also see the verification status for the domain change on the Domains page.

To learn how to keep a domain verified or remove it, see [Verified domains](https://www.jetbrains.com/help/organization-guide/verified-domains.html).

> **Tip:**
> If you can't verify a domain yet, [share the organization ID](#copy-organization-id) with the users who need to join through SSO. You can also take the ID from the JetBrains Console URL, which has the format `console.jetbrains.cloud/org/<organization-UUID>`. A verified domain is the setup to aim for, because it lets users find your organization by email address instead of waiting for you to send them an ID.

Procedure: Share the organization ID

Users who sign in through an auth module must identify the JetBrains organization they want to join. If you haven't verified your company's email domain, users who aren't already organization members can't find your organization by email. Share the organization ID so they can find it during their first SSO sign-in.

After you verify the domain, users with an email address from that domain can find your organization by email. Until then, share the organization ID with users who need to join through SSO. The organization ID isn't an authentication credential, but share it only through an approved internal communication channel.

1. Log in to [JetBrains Console](https://console.jetbrains.cloud/).

2. At the bottom of the sidebar, select your avatar to open the account menu.

3. In the last block of the menu, under the organization name, find Org ID.

![The account menu in JetBrains Console, with the Org ID row and its copy button highlighted under the organization name.](images/org-id-in-account-menu.png)

4. Select the copy icon next to the ID. Only the identifier is copied, without the Org ID label.

5. Send the ID to the users who need it through a communication channel that your company approves for internal information. Don't publish the organization ID publicly.

6. Tell those users how to sign in with it. See [Sign in with an organization ID](#sign-in-with-an-organization-id).

> **Note:**
> Everyone in the organization can see and copy the organization ID, not only administrators. The system generates the ID, so you can't choose, edit, or regenerate it. It's also different from the customer ID, which identifies the customer account for other purposes.

Procedure: Sign in with an organization ID

These steps are for the users you share the organization ID with, not for administrators. Users follow them on the sign-in form.

1. On the sign-in form, select Find organization by org ID.

2. Paste the organization ID.

3. Continue signing in through your identity provider.

