> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Tailscale (OAuth) - How do I link my account?

# Overview

To authenticate with Tailscale (OAuth), you need:

1. **Organization Name** - The unique name for your organization.
2. **Client ID** - A unique identifier for your OAuth client in Tailscale.
3. **Client Secret** - A confidential key used to authenticate the identity of the OAuth client.

This guide will walk you through finding or creating those credentials within Tailscale.

### Prerequisites:

* You must have a Tailscale account with **admin access** to create and manage OAuth clients.

### Instructions:

#### Step 1: Finding Your Organization Name

1. Log in to your Tailscale [Admin console](https://login.tailscale.com/admin).
2. Navigate to the [General page](https://login.tailscale.com/admin/settings/general).
3. Your **Organization Name** will be displayed in the **Organization** field.

<img src="https://mintcdn.com/nango/aUwESZgL_2tw-bR0/integrations/all/tailscale-api-key/general.png?fit=max&auto=format&n=aUwESZgL_2tw-bR0&q=85&s=ed4fa13a5075fac94091304bd8b43d3b" width="1914" height="414" data-path="integrations/all/tailscale-api-key/general.png" />

#### Step 2: Generating your OAuth Client Credentials

1. In the Tailscale admin console, navigate to the [OAuth clients page](https://login.tailscale.com/admin/settings/oauth).
2. Click **Generate OAuth Client** to create a new pair of **OAuth client credentials**.

<img src="https://mintcdn.com/nango/aUwESZgL_2tw-bR0/integrations/all/tailscale/generate_oauth_client.png?fit=max&auto=format&n=aUwESZgL_2tw-bR0&q=85&s=e0f88ec00c9cc79c36e5ad82f9c6ae3b" width="1914" height="530" data-path="integrations/all/tailscale/generate_oauth_client.png" />

3. From the popup that appears, fill in all the required information and select scopes you want to grant the **OAuth client** and click **Generate client**.

<img src="https://mintcdn.com/nango/aUwESZgL_2tw-bR0/integrations/all/tailscale/generate_client_form.png?fit=max&auto=format&n=aUwESZgL_2tw-bR0&q=85&s=145a6a2aaab231e676f00e10a89bb52c" width="1914" height="777" data-path="integrations/all/tailscale/generate_client_form.png" />

#### Step 3: Enter credentials in the Connect UI

Once you have your **Organization Name**, **Client ID** and **Client secret**:

1. Open the form where you need to authenticate with Tailscale (OAuth).
2. Enter your **Organization Name**, **Client ID** and **Client secret** in their designated fields.
3. Submit the form, and you should be successfully authenticated.

<img src="https://mintcdn.com/nango/aUwESZgL_2tw-bR0/integrations/all/tailscale/form.png?fit=max&auto=format&n=aUwESZgL_2tw-bR0&q=85&s=8d78987212b617d4196d6557af34fdac" style={{maxWidth: "450px" }} width="500" height="701" data-path="integrations/all/tailscale/form.png" />

You are now connected to Tailscale (OAuth).
