4 min readUpdated Mar 2, 2026

DomainRestrictions Component Documentation

Purpose

The DomainRestrictions component manages the allowed domains for user integrations within the Vantage platform. By restricting the domains from which users can connect their personal integrations, organizations can enhance security and compliance. This feature allows administrators to specify exactly which domains are permitted, ensuring that only approved external services and accounts can be integrated with the Vantage analytics platform.

Settings

The DomainRestrictions component includes several key settings and functionality areas:

1. Allowed Domains

2. Domain Input

3. Saving State

4. Saved State

5. Loading State

How It Works

  1. Initialization: On component mount, an asynchronous operation fetches the current list of allowed domains from the backend API (/api/integrations/domain-restrictions). If successful, the list is stored in the allowedDomains state. The loading state is set to false once the data is loaded.

  2. Adding Domains: The user enters a domain in the input field and clicks the "Add" button or presses the Enter key. The system converts the input to lowercase, trims whitespace, and checks for its uniqueness. If the domain is valid and not already in the list, it is added to allowedDomains, and the updated list is saved to the backend.

  3. Removing Domains: Users can remove an existing domain by clicking the "X" button next to the domain name. This triggers a re-fetch from the allowedDomains process, ensuring real-time updates.

  4. Data Sync: Changes to the allowedDomains state are reflected both in the UI and stored persistently via the backend API to ensure updates are saved across sessions.

Use Cases & Examples

Use Case 1: Security Compliance for Organizations

An organization that handles sensitive data can use the DomainRestrictions feature to ensure that only approved cloud services (e.g., company-approved analytics tools) can connect to their Vantage instance.

Use Case 2: Managing Third-Party Integrations

A company with multiple vendor contracts might want to restrict access to only their business partner domains, ensuring that integrations are limited to trusted entities.

Example Configuration

Business Scenario: Restrict Integrations to Approved Vendors

Configuration Steps:

  1. The administrator logs into the Vantage platform and navigates to the DomainRestrictions section.
  2. They enter the domains to be restricted, e.g., vendor1.com, vendor2.com, and vendor3.com.

Sample Configuration Data:

json
{
  "domains": [
    "vendor1.com",
    "vendor2.com",
    "vendor3.com"
  ]
}

Outcome: After saving, only accounts registered with these domains will be able to integrate with Vantage. If a user attempts to connect an account from unauthorized.com, the system will deny access, thereby enhancing the security and integrity of data within the platform.