triauth for TailscaleOIDC
Let your team join your Tailscale network with one approval on their own device, with your domain as the identity provider.
- 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
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.On the web server of your domain, serve the file below at
https://example.com/.well-known/webfinger, with your domain in place ofexample.com. Tailscale asks for it with the administrator's address in theresourcequery, and thesubjectrepeats 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" } ] }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
noneout of Prompts, and click Sign up with OIDC.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
| Setting | Value |
|---|---|
| Redirect address | https://login.tailscale.com/a/oauth_response, the same for every device |
| WebFinger file | served 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 domain | the administrator's address, the file, and the identifiers at the bridge share one domain |
| Prompts | consent, the default, login, or select_account. Not none, which the bridge rejects |
| Scopes | openid 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
- Read the OpenID Connect bridge page for what every connected app gets and what the bridge keeps private.
- Read Roll out to your team to give everyone in your organization an identifier at your domain.
- Read Groups to limit the network to one team when you connect it.
- Read Tailscale's custom OIDC guide for every detail of the setup.
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.