4 min readUpdated Mar 2, 2026

Add Credentials Page

Overview

The "Add Credentials Page" is a feature within the Vantage analytics and data platform, allowing users to store sensitive authentication information securely. This page is designed for rare testing scenarios that ensure the encryption and storage of these credentials are executed effectively. The page facilitates adding secure credential data to the credentials store table in a database using the database ORM.

Purpose

The primary purpose of the Add Credentials Page is to handle the secure entry and storage of sensitive credential information, specifically for third-party services like OpenWeatherMap. The component utilizes AES-256-GCM encryption to secure user credentials (like email and token) before they are stored in the database to mitigate exposure to sensitive data.

How It Works

Data Expectations

The component expects sensitive credential data in the following format before encryption:

javascript
const plainCredentials = {
    email: "user@example.com",
    token: "your_token_here"
};

Settings

The following settings govern the behavior and appearance of the Add Credentials Page:

1. protection

2. clientId

3. serviceId

4. plainCredentials

Use Cases & Examples

Use Cases

  1. Integration of Third-Party Services: A business using the Vantage platform may need to securely store API credentials to connect with different external services, like weather data, CRM data, etc.

  2. User Management: When managing multiple user accounts for applications that require authentication tokens, Vantage can streamline and secure credential storage.

  3. Testing Environments: Developers may require a secure page to insert test credentials without exposing sensitive information in development environments.

Example Configuration

Suppose a company wants to use Vantage to integrate with an environmental data service that requires credentials. The company has the following requirements for their credentials:

The configuration could be visualized to look as follows:

javascript
const clientId = 12345;              // The unique identifier for the client
const serviceId = 1;                 // The ID for OpenWeatherMap
const plainCredentials = {
    email: "john.doe@example.com",   // The user's email for API access
    token: "ABCDEF123456"             // The token for API authentication
};

With this configuration, when the Add Credentials Page processes this data, it would encrypt the provided credentials and successfully store them in the database under the entries for client ID 12345 and service ID 1, ensuring that highly sensitive information remains secure.