Skip to content

triauth for TailscaleOIDC

Let your team join your Tailscale network with one approval on their own device, with your domain as the identity provider.

  • Access and networking
  • Cloud service
Sign-in through
OpenID Connect bridge
Available in
Every plan, including the free one
Set up in
login.tailscale.com, plus one file on your domain

About Tailscale

Tailscale is a private network service built on WireGuard. Every computer, phone, and server of a company joins one network and reaches the others directly, with access rules written against people's identities. Tailscale has no passwords of its own: people sign in with an identity provider, and a company can bring its own.

Connect Tailscale to triauth

Tailscale signs people in through the triauth OpenID Connect bridge, as the custom identity provider of your network. Once connected, people on your team enter their email address at Tailscale, which sends them to the bridge, and their own device asks them to approve. When someone leaves, removing their identity records at your domain ends their way into the network as well.

Tailscale finds your identity provider through a small file on your domain, so this setup has one more step than most apps.

How it works

  1. Open oidc.triauth.org and enter your domain. Paste Tailscale's redirect address, https://login.tailscale.com/a/oauth_response, and click Connect app. The bridge gives you a client ID and a client secret.

  2. On the web server of your domain, serve the file below at https://example.com/.well-known/webfinger, with your domain in place of example.com. Tailscale asks for it with the administrator's address in the resource query, and the subject repeats that address.

    json
    {
      "subject": "acct:admin@example.com",
      "links": [
        { "rel": "http://openid.net/specs/connect/1.0/issuer",
          "href": "https://oidc.triauth.org/example.com" }
      ]
    }
  3. Open login.tailscale.com/start/oidc, enter the administrator's email address at your domain, and click Get OIDC Issuer. The Issuer field fills in with the bridge's address. Enter the client ID and the client secret, leave none out of Prompts, and click Sign up with OIDC.

  4. Everyone else on your team signs in at Tailscale with their own email address and is sent to the bridge.

Checkpoint

Get OIDC Issuer shows https://oidc.triauth.org/example.com in the Issuer field. Sign up with OIDC opens a page from the bridge that asks for the username, and the administrator's authenticator asks them to approve.

Good to know

  • The administrator who completes the sign-up owns the network. Everyone with an identity at your domain can join after that, and Tailscale's User approval setting lets the administrator confirm each new member first. To let only one team in, limit the app to a group when you connect it.
  • Access rules use Tailscale's own groups, since user and group provisioning is not available with a custom identity provider. The groups published at your domain are not used.
  • A network that already exists on a custom domain can switch to the bridge through Tailscale's switch identity provider page.

For the person who connects the app

SettingValue
Redirect addresshttps://login.tailscale.com/a/oauth_response, the same for every device
WebFinger fileserved over HTTPS at https://<your domain>/.well-known/webfinger, with href exactly equal to https://oidc.triauth.org/<your domain>. Tailscale reads it only when the network is created or the provider is switched
Email domainthe administrator's address, the file, and the identifiers at the bridge share one domain
Promptsconsent, the default, login, or select_account. Not none, which the bridge rejects
Scopesopenid profile email, requested by Tailscale

Tailscale keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Tailscale's custom OIDC guide explains the WebFinger file and the sign-up page in detail.

Next steps

All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.