# Connecting Accounts to Barndoor

Barndoor lets you connect MCP servers to your user workspace. Once connected, Barndoor can securely use your authorized credentials when executing **MCP server tool calls** on your behalf.

## How It Works Behind the Scenes

When you connect an account, Barndoor uses OAuth 2.0 to perform a secure handshake with the provider.

* After you log in, the provider (e.g., Salesforce) sends Barndoor an **access token**.
* Barndoor securely stores this JWT token and uses it whenever an **MCP server tool call** needs to act on your behalf — for example, retrieving Salesforce data or updating records. The JWT token will live for 60 minutes and can always be refreshed.
* Tokens can be revoked at any time through your provider’s account settings or through our API/SDK.

## Video Walkthrough

## Step 1: Go to Your Connected Accounts

1. Log in to your [Barndoor Dashboard](https://app.barndoor.ai/).
2. Underneath 'MY BARNDOOR', navigate to **Connected Accounts** or go directly to [**app.barndoor.ai/settings/accounts**](https://app.barndoor.ai/settings/apps).
3. You’ll see three tabs:
   * **Available** – services you can connect.
   * **All** – the complete list of supported integrations.
   * **Connected** – services already linked to your account.

## Step 2: Choose a Service to Connect

1. Under the **Available** tab, find the service you want to connect — for example, **Salesforce**.
2. Click **Connect**.
3. Barndoor will redirect you to the service’s authentication page (in this case, Salesforce).

## Step 3: Authorize Access

1. Sign in with your account credentials on the provider’s login page.
2. Approve Barndoor’s request for access.
   * This allows Barndoor to securely obtain an **access token** that it will store on your behalf.
   * Barndoor never sees or stores your password — only the OAuth token returned from the provider.

## Step 4: Verify the Connection

Once the authentication is complete:

* You’ll be redirected back to Barndoor.
* The connected service (e.g., **Salesforce**) will now appear in your **Connected Accounts** tab.
* You can disconnect at any time from the same page.

## That’s It!

You’ve now connected your first external service to Barndoor.
