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

# Connecting Accounts to Barndoor

> Step-by-step guide for connecting external accounts (like Salesforce) in 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

<div
  style={{
width: "100%",
maxWidth: "1100px",
margin: "2rem auto",
borderRadius: "12px",
overflow: "hidden"
}}
>
  <div style={{ position: "relative", paddingTop: "56.25%" }}>
    <iframe
      src="https://fast.wistia.net/embed/iframe/kyy9pgeaq4?seo=false&videoFoam=true"
      title="Connecting Accounts Demo"
      allow="autoplay; fullscreen"
      frameBorder="0"
      scrolling="no"
      style={{
  position: "absolute",
  top: 0,
  left: 0,
  width: "100%",
  height: "100%",
  border: "none"
}}
    />
  </div>
</div>

***

## 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.

<Info>
  This is entire web flow is also achievable via our Barndoor SDK and API's.
</Info>

***

## 🔗 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.
