Unified.to
All articles

How to Give a SaaS Product Secure Access to Customer Integrations

·

The most secure way to give a SaaS product access to customer integrations is to have each customer authorize access through the integration's own OAuth flow with the narrowest scopes your feature needs, keep the resulting tokens encrypted on the server side, bind every connection to exactly one customer, and keep as few copies of the customer's data as possible. Unified.to runs the authorization flow and token refresh for each customer connection and stores no customer records at rest; connection credentials and operational metadata are encrypted at rest, and from the Pro plan you can keep credentials in your own secrets manager instead.

What security controls does customer integration access need?

Customer integration access needs controls at eight points: authorization, scopes, credential storage, tenant isolation, data retention, token lifecycle, logging and access to your own admin console. The table maps each to what you do and what Unified.to does, as of 26 November 2026.

ControlWhat to doOn Unified.to
AuthorizationOAuth 2.0 authorization code flow, following RFC 9700; never collect customers' passwordsUnified.to runs the authorization flow for each customer; in production you register your own OAuth app where the integration requires one
ScopesRequest only what the feature needs; separate read from writeUnified scopes such as crm_contact_read, mapped to each integration's own scopes; integration-specific scopes can be added
Credential storageEncrypt tokens at rest; keep keys in a key management service or secrets manager; never send tokens to the browserConnection credentials and operational metadata are encrypted at rest; from Pro, credentials can live in your own secrets manager
Tenant isolationBind every credential to one customer and check ownership on every lookupEach connection is one customer's authorization of one integration, referenced by its connection ID; your backend maps customers to connection IDs
Data retentionDon't keep copies of customer records you don't needNo customer records stored at rest; reads go to the source API at request time
Token lifecycleRefresh on the server; revoke on disconnectUnified.to refreshes tokens; deleting a connection removes it and its webhooks
LoggingLog metadata, never tokens; keep an audit trail of who connected whatAPI call logs kept 30, 60 or 365+ days depending on plan; log streaming from Pro
Admin accessSSO and network restrictions on the console that holds integration settingsSAML SSO and IP restrictions from Pro
Hosting is in the US, EU or AU on every plan. The SOC 2 Type II report is available from the Trust Center, along with GDPR, CCPA, HIPAA and PIPEDA details, and a HIPAA BAA is available on Scale.

How should a SaaS product request access to a customer's integration?

A SaaS product should request access through the integration's OAuth 2.0 authorization code flow, asking for the minimum scopes the feature needs, so the customer approves access on the vendor's own consent screen and never gives your product a password. RFC 9700, the IETF's current OAuth security practice (January 2025), adds PKCE, single-use state values and exact redirect URI matching.

Scope discipline is where most over-permissioning happens. If a feature reads contacts, request contact read access, not account-wide write access, and review scopes when the feature changes. On Unified.to, you request Unified scopes such as crm_contact_read and they are mapped to each integration's own scopes, so the same request works across the integrations in a category. Where an integration accepts only an API key, the customer pastes a key they generated, ideally one restricted to the permissions you need. For how this works across many integrations, see How to Handle OAuth Across Many Integrations.

How should integration credentials be stored?

Integration credentials should be stored encrypted at rest, with the encryption keys held separately in a key management service or secrets manager, readable only by the service that calls the integration, and never written to logs, error messages, URLs or the browser. Refresh tokens matter most: they outlive access tokens and can mint new ones.

On Unified.to, connection credentials and operational metadata are encrypted at rest. From the Pro plan you can keep integration credentials in your own vault instead, for example AWS Secrets Manager, Azure Key Vault, Google Secret Manager, HashiCorp Vault, 1Password or Doppler, so the tokens stay in infrastructure you control. Setup is in Credential Management in Unified: Bring Your Own Secrets Manager.

How do you keep one customer's integration from reaching another's?

You keep one customer's integration from reaching another's by binding every credential to exactly one customer and checking that binding on every request, on the server, against the signed-in customer rather than an ID the browser sends. Row-level security in your database is a useful second check.

On Unified.to, each connection is one customer's authorization of one integration and has its own connection ID. Your workspace API key can call any connection in the workspace, so it stays on your server, and your backend stores which connection ID belongs to which customer and checks it before each call. For AI agents, a connection-scoped MCP token grants access to one connection only and never carries your workspace API key, so a prompt or a record can't steer the agent to another customer's data.

How much customer data should the integration layer keep?

The integration layer should keep as little customer data as the feature allows, because every stored copy of a customer's records is another data store to secure, retain, delete and include in audits. Logs count: a log that captures full request and response bodies becomes a second copy of the data.

Unified.to reads from the source API at request time and stores no customer records at rest; connection credentials and operational metadata are encrypted at rest. Webhooks deliver changed records to your endpoint rather than to a copy held by Unified.to. For AI use cases, hide_sensitive=true on the MCP server strips sensitive fields such as names, emails, phone numbers, addresses, dates of birth, SSN/SIN, compensation and credential fields from results. For the compliance side, see Why Unified APIs Shouldn't Store Your Customer Data.

What should you log and monitor?

You should log which connection made each call, when, with what result, and who connected or disconnected each integration, while keeping tokens and sensitive payloads out of the logs. Alert on failed authorization and unhealthy connections, so a revoked or expired grant is noticed before a customer reports it.

On Unified.to, API call logs are kept for 30 days on Test, 60 on Grow and Pro, and 365 or more on Scale, and from Pro they can be streamed to your own logging system. Dashboard access can be restricted with SAML SSO and IP restrictions from Pro.

What should happen when a customer disconnects an integration?

When a customer disconnects an integration, revoke the grant at the vendor where it offers a revoke endpoint, delete the stored credentials, cancel pending jobs for that connection, and record the disconnect in your audit trail. Make disconnecting a visible control in your product, not a support request.

On Unified.to, DELETE /unified/connection/{id} removes the connection and every webhook created on it, and deleting the connection also revokes its connection-scoped MCP token. Where the vendor has its own revoke endpoint, call it as well.

What should you ask a third-party integration vendor about security?

Ask a third-party integration vendor these questions before you hand it your customers' credentials:

  • Do you store end-customer records at rest, or cache synced data?
  • How much of each request and response is logged, and for how long?
  • Where are OAuth tokens stored, and can we use our own secrets manager?
  • Whose OAuth app do customers authorize in production?
  • Can a credential or token reach more than one customer's connection?
  • Which hosting regions can we choose?
  • Can we restrict console access with SSO and IP restrictions?
  • Will you share a SOC 2 Type II report, and do you sign a BAA?
  • For AI agents, can access be limited to one connection and sensitive fields removed?

Frequently asked questions

Is using a third-party integration vendor less secure than building in-house? It depends on what the vendor stores and who holds the tokens. A vendor that keeps copies of customer records adds a data store to your audit scope; one that stores no customer records at rest and lets you keep credentials in your own secrets manager adds far less. Ask for the SOC 2 Type II report either way.

Should we accept API keys from customers? Only where the integration offers no OAuth option. Ask customers for a key restricted to the permissions you need, treat it like a refresh token in storage, and tell them how to rotate it.

Can we use Unified.to**'s OAuth app in production?** Where an integration requires it, production connections use your own OAuth app, so customers see your product on the consent screen and the grant belongs to you. Unified.to's own OAuth credentials are for testing.

→ Start your 30-day free trial

→ Book a demo


Written by Mallory Greene.

About the author: Mallory Greene is Head of Marketing at Unified.to_. She writes about integration infrastructure, unified APIs, and MCP for technical teams. Based in Toronto._

All articles