Skip to main content

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.

Overview

Barndoor connects users to your MCP server using the OAuth 2.0 authorization code flow. When a user authorizes Barndoor, your platform redirects their browser to a Barndoor-hosted callback URL with the authorization code. For that redirect to succeed, the callback URL must be registered as an allowed redirect URI on the OAuth application (or MCP server registration) in your platform. If you operate a SaaS platform with an MCP server and want Barndoor customers to be able to connect to it, add the redirect URIs below to your OAuth client allowlist.

Redirect URIs to Allowlist

Add all three URIs. Each corresponds to a different Barndoor environment, and customers may connect from any of them:
  • https://app.barndoor.ai/callback — Production
  • https://app.barndoordev.com/callback — Development
  • https://app.barndooruat.com/callback — UAT / staging
All three URIs are stable. They are exact-match URLs — do not add trailing slashes, wildcards, or alternate paths. Allowlisting only the production URI will block development and UAT testing.

Why All Three Environments

Barndoor maintains separate environments for production traffic, internal development, and customer-facing UAT testing. Customers running pre-release validation or proof-of-concept work will often connect from the UAT or development environment before promoting an integration to production. Allowlisting all three URIs up front avoids a second round-trip when those customers begin testing.

Common Platform Locations

Platform patternTypical setting path
OAuth 2.0 client configApp settings → OAuth → Redirect URIs
Dynamic client registrationSet redirect_uris array in the client registration payload
Per-tenant OAuth appAdmin console → Apps / Integrations → Edit app → Redirect URIs

Troubleshooting

If users see redirect errors after allowlisting:
  1. Check for exact-match issues. Confirm there are no trailing slashes, missing https://, or typos.
  2. Confirm the change has propagated. Some platforms cache OAuth client config for several minutes.
  3. Verify all three URIs are present. Errors that only occur for some users often indicate a missing environment.
  4. Contact support if the issue persists: [email protected].

Frequently Asked Questions

Only if you don’t intend to support customer testing in pre-production. Customers running pilots or UAT often connect from app.barndooruat.com or app.barndoordev.com, and those flows will fail with an invalid_redirect_uri error if only the production URI is registered.
No. These are stable, long-lived URIs. If they ever change, Barndoor will notify integrated platforms in advance and update this page.
Most OAuth providers don’t allow wildcards in redirect URIs, and we don’t recommend it even where supported. Register the three exact URIs above.
No. Redirect URI allowlisting governs the OAuth browser redirect to Barndoor. IP whitelisting governs the server-to-server MCP traffic from Barndoor to your infrastructure. Most integrations need both.

Need Help?

If you have questions about redirect URI allowlisting or need assistance configuring your OAuth application, reach out to our support team at [email protected].