Skip to content
TesseraDocs
MenuLogin domains

Login domains

A login domain lets people sign in on your own address, such as login.example.com, with your DNS provider of choice.

View as Markdown

On this page

A login domain lets people sign in on your own address, such as login.example.com, with your DNS provider of choice.

Read domains first for what changes. This page is the setup.

Planned. Adding a domain yourself is not open to workspace owners yet. Domains are an operator-only part of the admin API and are not in the workspace console, because each one creates a hostname at Tessera's edge. During early access the Tessera team adds the domain to your realm. The steps and records below are what you will see and do either way.

Before you start

  • Pick a subdomain you control, for example login.example.com. Do not use the bare domain.
  • Your DNS can be at any provider. Tessera never needs access to your DNS. You add the records it shows you.
  • Decide how you handle passkeys (see below).

1. Add the domain

The hostname must be a full DNS name such as login.example.com, in lowercase, with no scheme, port or path. A name that is already taken by another realm is refused. The first domain of a realm becomes its canonical one.

CLI form: tessera domains ensure login.example.com.

2. Add the DNS records

Tessera shows you the records. For login.example.com:

Purpose Type Name Value
Ownership TXT _tessera-challenge.login.example.com tessera-verify=<token>
Routing CNAME login.example.com the target Tessera shows you

Use the CNAME target exactly as Tessera shows it for your domain. The console shows each record with a copy button. tessera domains status login.example.com lists the same records, and once the edge is involved it also shows each edge record's validation status and when Tessera will look again.

Two rules for the CNAME:

  • It must be DNS only. If your provider has a proxy, such as Cloudflare's orange cloud, turn it off for this record.
  • If you have a CAA record, it must allow Cloudflare's certificate authorities, for example example.com CAA 0 issue "letsencrypt.org". Tessera reads your public DNS and tells you if either is wrong, with the record to add.

3. Verify

Press Verify now (tessera domains verify login.example.com). Tessera looks up the TXT record. A missing record is not an error that changes anything: the domain simply stays pending and says what it did not find.

4. Certificate

Once ownership is verified, Tessera asks its edge to create the host and a certificate. You then add two more TXT records that the page shows:

Purpose Type Name
Hostname ownership TXT _cf-custom-hostname.login.example.com
Certificate validation TXT _acme-challenge.login.example.com

The certificate is issued automatically. Because it validates by TXT, you can add its record while your old sign-in still works and move the CNAME last, with no gap. If the CNAME is already in place, the hostname ownership record can be skipped. Tessera checks every few minutes, or you can read the state now with tessera domains status login.example.com --refresh. The console does not show the edge state yet, so use the CLI for this step. A hostname that stays pending for days is dropped by the edge: run tessera domains provision login.example.com to start again.

5. Activate

Press Activate (tessera domains activate login.example.com). It waits until the hostname and certificate are both active and answers 409 until then. Only active domains are served, and a new one starts serving within 30 seconds.

What changes for your app

Setting New value
Issuer https://login.example.com (no /realms/...)
Discovery https://login.example.com/.well-known/openid-configuration
Keys https://login.example.com/jwks
Redirect URLs no change
Passkeys tied to the new host

Change the issuer in your app and check iss against it exactly. Federated providers call back to the host where sign-in started, so register https://login.example.com/federation/<provider>/callback with each external provider you use.

The old address keeps working

The shared address https://login.kurthlabs.com/realms/<realm> never stops working. A domain that is not active is not served: Tessera answers a request for it with 404 and the problem code host_not_registered, which names the cause and the fix. Tokens issued there carry the shared issuer, so pick one issuer per app. Rolling back is one step: deactivate the domain.

Passkeys

A passkey works only on the host where it was made. Passkeys people made on the shared address do not work on login.example.com. If you want to switch the canonical host of a realm that already has passkeys, set the realm's passkey_rp_id to a parent domain that covers both hosts before the switch. Otherwise, keep the old host as canonical until people have enrolled on the new one.

Keep the TXT record

Tessera checks the ownership TXT of active domains again every 6 hours. If it is missing for 3 days in a row, the domain is deactivated and the shared address serves the realm again. Restore the record, verify and activate to repair it.

Aliases and limits

Later domains are aliases that redirect to the canonical host. The canonical host can be switched later, and the response lists what your app and passkeys need to change. A realm can hold up to 10 domains, and 10 additions in 24 hours by default. A domain can be deleted at any time.