Verify email domain for single sign-on

(Updated: )

To enable single sign-on for your Leebry organization, an admin must first verify ownership of the email domain used by your users, such as macpaw.com. Once the domain is verified, Leebry can associate users from your identity provider with accounts in your Leebry organization.

Add a domain for verification

Note

Only organization admins can manage verified domains.

To add a domain for verification in Leebry:

  1. Sign in to Leebry as an organization admin.

  2. In the bottom-left corner, click your user name, then choose SSO Settings.

  3. In the SSO Settings dialog, go to the Verified Domains tab.

  4. Click "Add domain".

    The "Add Verified domain" dialog opens.

  5. In the "Domain name" field, enter the domain you want to verify, such as macpaw.com.

    Enter only the domain used in your users' email addresses. For example, if a typical email address is [email protected], enter macpaw.com — not a full URL such as https://macpaw.com or a subdomain such as login.macpaw.com.

  6. Click Continue.

    The "Select verification method" dialog opens.

  7. Choose a verification method, then click Continue.

MethodDetails
DNS TXT recordAdd a TXT record to your domain's DNS configuration so Leebry can verify domain ownership.
HTML meta tagAdd an HTML meta tag to your domain's homepage so Leebry can verify domain ownership.
Verification fileUpload a verification file to your website so Leebry can verify domain ownership.

The following sections explain how to complete each verification method using the verification token provided by Leebry.

Verify using a DNS TXT record

Note

This is the recommended verification method.

Use this method if you can manage DNS records for your domain through your DNS provider.

  1. Open the DNS settings for your domain with your DNS provider, such as Cloudflare, Amazon Route 53, GoDaddy, or your domain registrar.

  2. Create a TXT record for the root domain:

    • Name/Host: Enter @ or leave the field blank, depending on your provider's conventions.

    • Type: Select TXT.

  3. Set the TXT record value to

    leebry-domain-verification={verificationToken}

    Replace {verificationToken} with the verification token shown in Leebry for this domain. Don't include braces, additional spaces, or line breaks.

  4. Save the TXT record and wait for the DNS record to propagate.

    This can take several minutes or several hours, depending on your provider and TTL settings.

    You can use a DNS checking tool such as DNS Checker to confirm that the TXT record is publicly visible.

  5. In Leebry, go to SSO Settings > Verified Domains.

  6. In the Status column for the domain, which should show Pending, click Verify.

If Leebry finds the TXT record with the expected value, the domain status changes from Pending to Verified. You can then continue configuring SSO for your organization.

Verify using an HTML meta tag

Use this method if you can edit the HTML of your website's homepage for the domain you're verifying.

  1. Open the HTML file for your website's homepage at https://{domain}/.

    For example, if you're verifying macpaw.com, open the HTML file for https://macpaw.com/.

  2. In the <head> section, add the following meta tag:

    <meta name="leebry-domain-verification" content="{verificationToken}">

    Replace {verificationToken} with the exact verification token shown in Leebry for this domain.

  3. Deploy or publish changes so the homepage with the meta tag is publicly accessible over HTTPS.

  4. Confirm that the tag is present:

    1. Open the homepage in a web browser.

    2. View the page source and check the <head> section for the leebry-domain-verification meta tag.

  5. In Leebry, go to SSO Settings > Verified Domains.

    In the Status column for the domain, which should show Pending, click Verify.

If Leebry can retrieve the homepage and find the meta tag with the expected verification token, the domain status changes from Pending to Verified. You can then continue configuring SSO for your organization.

Verify using a verification file

Use this method if you can host a static file at a specific URL on your domain. Leebry generates the verification file, so you don't need to create or edit it manually.

  1. Download the verification file provided by Leebry, named leebry-domain-verification.txt.

  2. Upload the file to your web server or hosting platform so it's publicly available at:

    https://{domain}/.well-known/leebry-domain-verification.txt

    For example, for macpaw.com, the file should be available at:

    https://macpaw.com/.well-known/leebry-domain-verification.txt
  3. Confirm that the URL works:

    1. Open the URL in a web browser.

    2. Make sure the server returns a 200 status code and the file contents match the file provided by Leebry exactly.

  4. In Leebry, go to SSO Settings > Verified Domains.

    In the Status column for the domain, which should show Pending, click Verify.

If Leebry can retrieve the file from the .well-known path and its contents match the expected verification data, the domain status changes from Pending to Verified. You can then continue configuring SSO for your organization.

Check verification status

After you click Verify, Leebry checks the chosen verification method.

  • Verified — The domain ownership has been confirmed. You can continue configuring SSO for your organization with your identity provider.

  • Pending — Verification hasn't been completed yet. Make sure your DNS record, meta tag, or verification file is publicly accessible, then click Verify again.

  • Failed — Leebry couldn't verify ownership of the domain. This can happen if DNS records or website changes haven't propagated yet. Update the DNS record, HTML meta tag, or verification file as needed, then click Verify again.

Cancel verification

If you no longer want to verify a domain or want to start over:

  1. In Leebry, go to SSO Settings > Verified Domains.

  2. Click More (⋮) next to the domain you want to remove, then choose Delete.

Troubleshoot verification

If verification continues to fail:

  • Make sure you've entered the correct domain rather than a subdomain or full URL.

  • Make sure the verification token in the DNS TXT record, HTML meta tag, or the .well-known file exactly matches the token shown in Leebry. The token is case-sensitive and mustn't contain quotation marks, extra spaces, or line breaks.

  • Use a DNS checking tool or your browser's developer tools to confirm that the DNS record, meta tag, or verification file is publicly accessible.

Was this article helpful?

Help us improve Knowledge Base

Related Articles

Contact us

Can’t find answers to your question?

Contact us and we’ll get back to you as soon as we can.

Contact us