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

# Connection Config

> Configure connection credentials and authentication for external systems

## Overview

Connection Config stores the credentials and connection details needed to communicate with external systems. Before you can create inbound or outbound connections, you must first configure the connection settings for each external system.

<img src="https://mintcdn.com/fentu/VaII27VqRBHw2baV/images/fentu-connect/connection-config/connection-config-list.png?fit=max&auto=format&n=VaII27VqRBHw2baV&q=85&s=9bc1fdf8c318136248873413f8c361a9" alt="Connection Config List" width="1280" height="720" data-path="images/fentu-connect/connection-config/connection-config-list.png" />

## Connection Config List

The list displays all configured connections with the following information:

| Column           | Description                                            |
| ---------------- | ------------------------------------------------------ |
| **Name**         | The display name of the connection configuration       |
| **Endpoint URL** | The API endpoint or server URL for the external system |
| **Actions**      | Edit or delete the connection configuration            |

### List Features

* **Search** - Filter configurations by name
* **New Button** - Create a new connection configuration
* **Pagination** - Navigate through multiple pages
* **Items per Page** - Choose 5, 10, 25, 50, or 100 items per page

***

## Creating a Connection Config

<img src="https://mintcdn.com/fentu/VaII27VqRBHw2baV/images/fentu-connect/connection-config/connection-config-new.png?fit=max&auto=format&n=VaII27VqRBHw2baV&q=85&s=32d3fc2f3e255b13e1bfeaec841e88d8" alt="New Connection Config Form" width="1280" height="720" data-path="images/fentu-connect/connection-config/connection-config-new.png" />

To create a new connection configuration:

1. Click the **New** button from the Connection Config list
2. Enter a name and endpoint URL
3. Select the system type from the dropdown
4. Fill in the type-specific credentials
5. Click **Connect** to test the connection
6. Click **Save** to store the configuration

### Basic Fields

| Field            | Description                                                                                        | Required |
| ---------------- | -------------------------------------------------------------------------------------------------- | -------- |
| **Name**         | A descriptive name for this connection (e.g., "\[LIVE] Production SAP", "\[DEV] Test Environment") | Yes      |
| **Endpoint URL** | The base URL of the external system's API                                                          | Yes      |
| **Type**         | The integration type - determines which additional fields appear                                   | Yes      |

***

## Type-Specific Configuration

Different system types require different authentication credentials. Select the type to see the appropriate fields.

### SAP B1 Configuration

<img src="https://mintcdn.com/fentu/VaII27VqRBHw2baV/images/fentu-connect/connection-config/connection-config-sapb1.png?fit=max&auto=format&n=VaII27VqRBHw2baV&q=85&s=271228a145ca3a44d194a72ab34e00a1" alt="SAP B1 Connection Config" width="1280" height="720" data-path="images/fentu-connect/connection-config/connection-config-sapb1.png" />

| Field          | Description                                |
| -------------- | ------------------------------------------ |
| **Company DB** | The SAP Business One company database name |
| **Username**   | SAP B1 service layer username              |
| **Password**   | SAP B1 service layer password              |
| **Session ID** | Auto-populated after successful connection |

<Note>
  The SAP B1 Service Layer typically runs on port 50000. Example endpoint: `https://your-sap-server:50000/b1s/v1`
</Note>

### Fentu-FSM Configuration

<img src="https://mintcdn.com/fentu/VaII27VqRBHw2baV/images/fentu-connect/connection-config/connection-config-fentufsm.png?fit=max&auto=format&n=VaII27VqRBHw2baV&q=85&s=9ef2ab57c0b001a42aca637d18dbcd01" alt="Fentu-FSM Connection Config" width="1280" height="720" data-path="images/fentu-connect/connection-config/connection-config-fentufsm.png" />

| Field            | Description                                          |
| ---------------- | ---------------------------------------------------- |
| **Username**     | Fentu FSM user email                                 |
| **Password**     | Fentu FSM user password                              |
| **Endpoint URL** | The Fentu FSM API URL (e.g., `https://api.fentu.io`) |

### Other System Types

Each system type displays its specific authentication fields when selected. Common patterns include:

* **API Key Authentication** - Single API key field
* **OAuth** - Client ID and Client Secret
* **Basic Auth** - Username and Password
* **Token-based** - Access token or bearer token

***

## Testing the Connection

Before saving, always test your connection:

1. Fill in all required fields
2. Click the **Connect** button
3. If successful, a session ID or confirmation will appear
4. If failed, check your credentials and endpoint URL

<Warning>
  A successful connection test does not guarantee all features will work. Some operations may require additional permissions on the external system.
</Warning>

***

## Editing a Connection Config

1. Find the configuration in the list
2. Click the edit icon in the Actions column
3. Update the necessary fields
4. Click **Re-Connect** to test with new credentials
5. Click **Save** to apply changes

<Tip>
  When credentials change (password rotation, API key renewal), update the Connection Config and test the connection to ensure integrations continue working.
</Tip>

***

## Deleting a Connection Config

1. Find the configuration in the list
2. Click the delete icon in the Actions column
3. Confirm the deletion

<Warning>
  Deleting a Connection Config will break any inbound or outbound connections that use it. Ensure no active integrations depend on this configuration before deleting.
</Warning>

***

## Security Best Practices

<AccordionGroup>
  <Accordion title="Use Descriptive Names with Environment Tags" icon="tag">
    Include environment indicators in names to prevent confusion:

    * `[LIVE] Production SAP B1`
    * `[UAT] Staging Environment`
    * `[DEV] Local Testing`
  </Accordion>

  <Accordion title="Create Service Accounts" icon="user-gear">
    Create dedicated service accounts in external systems for Fentu Connect rather than using personal user credentials. This:

    * Improves security
    * Simplifies credential rotation
    * Provides clearer audit trails
  </Accordion>

  <Accordion title="Rotate Credentials Regularly" icon="rotate">
    Implement a schedule to rotate API keys and passwords periodically. Update the Connection Config when credentials change.
  </Accordion>

  <Accordion title="Principle of Least Privilege" icon="shield-halved">
    Grant the minimum permissions necessary for the integration to function. Avoid using admin-level credentials when read-only access is sufficient.
  </Accordion>
</AccordionGroup>

***

## Troubleshooting

<AccordionGroup>
  <Accordion title="Connection Test Fails" icon="circle-exclamation">
    **Common causes:**

    * Incorrect endpoint URL (check for typos, missing port numbers)
    * Invalid credentials
    * Network firewall blocking the connection
    * External system is down or unreachable
    * SSL/TLS certificate issues

    **Solutions:**

    * Verify the endpoint URL is correct
    * Confirm credentials work by logging into the external system directly
    * Check if the Fentu Connect server can reach the external system (firewall rules, VPN)
  </Accordion>

  <Accordion title="Connection Works But Data Doesn't Sync" icon="question">
    The Connection Config only establishes connectivity. If data isn't syncing:

    * Check the Inbound/Outbound connection settings
    * Verify field mappings are correct
    * Ensure the connection is marked as Active
    * Check the service account has permissions to read/write the relevant data
  </Accordion>

  <Accordion title="Session Expired Errors" icon="clock">
    Some systems (like SAP B1) use session-based authentication that expires. Fentu Connect automatically handles session renewal in most cases. If you see persistent session errors:

    * Verify the credentials are still valid
    * Check if the external system has session limits or timeouts configured
  </Accordion>
</AccordionGroup>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Inbound Connections" icon="arrow-down" href="/fentu-connect/inbound">
    Configure inbound data connections using your Connection Config
  </Card>

  <Card title="Outbound Connections" icon="arrow-up" href="/fentu-connect/outbound">
    Configure outbound data connections using your Connection Config
  </Card>

  <Card title="Connector" icon="plug" href="/fentu-connect/connector">
    Create connectors that use your Connection Config
  </Card>

  <Card title="Connect Wizard" icon="wand-magic-sparkles" href="/fentu-connect/connect-wizard">
    Quickly set up integrations with guided wizard
  </Card>
</CardGroup>
